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

L2SS-449: Mock DeviceProxy to avoid lofar_device trying to access itself as a client

parent 7a2747e0
No related branches found
No related tags found
1 merge request!175Resolve L2SS-449 "Add deviceproxy to devices"
......@@ -13,12 +13,14 @@ from tango import DevState
from tangostationcontrol.test.clients.test_client import test_client
from tangostationcontrol.clients.attribute_wrapper import *
from tangostationcontrol.devices.lofar_device import *
import tangostationcontrol.devices.lofar_device
# Test imports
from tango.test_context import DeviceTestContext
from tangostationcontrol.test import base
import asyncio
import mock
scalar_dims = (1,)
spectrum_dims = (4,)
......@@ -38,6 +40,13 @@ def dev_init(device):
class TestAttributeTypes(base.TestCase):
def setUp(self):
# Avoid the device trying to access itself as a client
self.deviceproxy_patch = mock.patch.object(tangostationcontrol.devices.lofar_device,'DeviceProxy')
self.deviceproxy_patch.start()
def tearDown(self):
self.deviceproxy_patch.stop()
class str_scalar_device(lofar_device):
scalar_R = attribute_wrapper(comms_annotation="str_scalar_R", datatype=numpy.str)
......
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