Skip to content
Snippets Groups Projects
Commit 147ebc68 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

SW-818: Merge branch 'SW-818' into 'LOFAR-Release-4_0'

SW-818: had to mock away an ssh call to lcu as well.

See merge request !65
parents 7072ceba 7395f662
No related branches found
No related tags found
2 merge requests!66Lofar release 4 0,!65SW-818: had to mock away an ssh call to lcu as well.
......@@ -125,6 +125,10 @@ class TestALERTHandler(unittest.TestCase):
self.addCleanup(popen_patcher.stop)
popen_patcher.start()
get_current_stations_patcher = mock.patch('lofar.common.lcu_utils.get_current_stations', return_value=['cs001'])
self.addCleanup(get_current_stations_patcher.stop)
get_current_stations_patcher.start()
def test_valid_voevent_should_invoke_tbb_dump(self):
with mock.patch('lofar.mac.tbbservice.client.tbbservice_rpc.TBBRPC.do_tbb_subband_dump') as dump, \
mock.patch('lofar.triggerservices.voevent_decider.ALERTDecider') as sciencecheck:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment