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

L2SS-480: Do patch DeviceProxy in lofar_base_device as well

parent 1939d588
No related branches found
No related tags found
1 merge request!220Resolve L2SS-480 "Delays to beam weights"
...@@ -9,8 +9,9 @@ ...@@ -9,8 +9,9 @@
from tango import DevState from tango import DevState
from tango.test_context import DeviceTestContext from tango.test_context import DeviceTestContext
import tango
from tangostationcontrol.devices import beam from tangostationcontrol.devices import beam, lofar_device
import numpy import numpy
import mock import mock
...@@ -25,10 +26,11 @@ class TestBeamDevice(base.TestCase): ...@@ -25,10 +26,11 @@ class TestBeamDevice(base.TestCase):
# Patch DeviceProxy to allow making the proxies during initialisation # Patch DeviceProxy to allow making the proxies during initialisation
# that we otherwise avoid using # that we otherwise avoid using
proxy_patcher = mock.patch.object( for device in [beam, lofar_device]:
beam, 'DeviceProxy') proxy_patcher = mock.patch.object(
self.m_init = proxy_patcher.start() device, 'DeviceProxy')
self.addCleanup(proxy_patcher.stop) proxy_patcher.start()
self.addCleanup(proxy_patcher.stop)
def test_get_pointing_directions(self): def test_get_pointing_directions(self):
"""Verify can read pointings attribute and length matches without err""" """Verify can read pointings attribute and length matches without err"""
......
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