Commit 147ebc68 authored by Jorrit Schaap's avatar Jorrit Schaap

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 ro/lofar!65
parents 7072ceba 7395f662
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment