Skip to content
Snippets Groups Projects
Commit 3c060cb1 authored by Taya Snijder's avatar Taya Snijder
Browse files

L2SS-826 fixed mock.patch path after changing file names

parent 94d1dc32
Branches
Tags 0.9.3
1 merge request!22Resolve L2SS-826 "Create central observation controller"
Pipeline #39954 passed
...@@ -68,7 +68,7 @@ class TestMultiStationObservation(base.TestCase): ...@@ -68,7 +68,7 @@ class TestMultiStationObservation(base.TestCase):
self.station_mocks[2].get_host.return_value = "host3" self.station_mocks[2].get_host.return_value = "host3"
@mock.patch( @mock.patch(
"lofar_station_client.observation.MultiStationObservation.Station", "lofar_station_client.observation.multi_station_observation.Station",
autospec=True, autospec=True,
) )
def test_start(self, M_station): def test_start(self, M_station):
...@@ -81,7 +81,7 @@ class TestMultiStationObservation(base.TestCase): ...@@ -81,7 +81,7 @@ class TestMultiStationObservation(base.TestCase):
self.assertEqual(M_station.call_count, 3) self.assertEqual(M_station.call_count, 3)
@mock.patch( @mock.patch(
"lofar_station_client.observation.MultiStationObservation.Station", "lofar_station_client.observation.multi_station_observation.Station",
autospec=True, autospec=True,
) )
def test_abort(self, M_station): def test_abort(self, M_station):
...@@ -94,7 +94,7 @@ class TestMultiStationObservation(base.TestCase): ...@@ -94,7 +94,7 @@ class TestMultiStationObservation(base.TestCase):
self.assertEqual(M_station.call_count, 3) self.assertEqual(M_station.call_count, 3)
@mock.patch( @mock.patch(
"lofar_station_client.observation.MultiStationObservation.Station", "lofar_station_client.observation.multi_station_observation.Station",
autospec=True, autospec=True,
) )
def test_proxies(self, M_station): def test_proxies(self, M_station):
...@@ -113,7 +113,7 @@ class TestMultiStationObservation(base.TestCase): ...@@ -113,7 +113,7 @@ class TestMultiStationObservation(base.TestCase):
self.assertEqual(expected, results) self.assertEqual(expected, results)
@mock.patch( @mock.patch(
"lofar_station_client.observation.MultiStationObservation.Station", "lofar_station_client.observation.multi_station_observation.Station",
autospec=True, autospec=True,
) )
def test_is_running(self, M_station): def test_is_running(self, M_station):
...@@ -127,7 +127,7 @@ class TestMultiStationObservation(base.TestCase): ...@@ -127,7 +127,7 @@ class TestMultiStationObservation(base.TestCase):
self.assertEqual(expected, results) self.assertEqual(expected, results)
@mock.patch( @mock.patch(
"lofar_station_client.observation.MultiStationObservation.Station", "lofar_station_client.observation.multi_station_observation.Station",
autospec=True, autospec=True,
) )
def test_is_connected(self, M_station): def test_is_connected(self, M_station):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment