Skip to content
Snippets Groups Projects
Commit 1939d588 authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-480: Patching init_device is not needed anymore since we now patch...

L2SS-480: Patching init_device is not needed anymore since we now patch DeviceProxy more specifically
parent 947b2767
No related branches found
No related tags found
1 merge request!220Resolve L2SS-480 "Delays to beam weights"
......@@ -23,15 +23,6 @@ class TestBeamDevice(base.TestCase):
def setUp(self):
super(TestBeamDevice, self).setUp()
# lofar_device init_device will launch a DeviceProxy not captured by
# the TestDeviceContext making it fail.
# Patch init_device and force match spec
init_patcher = mock.patch.object(
beam.Beam, 'init_device', spec=beam.Beam.init_device)
self.m_init = init_patcher.start()
self.addCleanup(init_patcher.stop)
# Patch DeviceProxy to allow making the proxies during initialisation
# that we otherwise avoid using
proxy_patcher = mock.patch.object(
......
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