diff --git a/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_lofar_device_proxy.py b/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_lofar_device_proxy.py deleted file mode 100644 index dcb9a8b1a670a05c2d22bc7318eb7d33fc010a77..0000000000000000000000000000000000000000 --- a/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_lofar_device_proxy.py +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright (C) 2022 ASTRON (Netherlands Institute for Radio Astronomy) -# SPDX-License-Identifier: Apache-2.0 - -from tango import DevState - -from tangostationcontrol.integration_test.device_proxy import TestDeviceProxy -from .base import AbstractTestBases - - -class TestLOFARDeviceProxy(AbstractTestBases.TestDeviceBase): - def setup_recv_proxy(self): - """setup RECV""" - recv_proxy = TestDeviceProxy("STAT/RECV/1") - recv_proxy.off() - recv_proxy.warm_boot() - recv_proxy.set_defaults() - return recv_proxy - - def test_lofar_device_proxy_creation(self): - """Test whether a device proxy is correctly created even if not defined in TangoDB""" - # STAT/RECV/1 defined in TangoDB - recv1_proxy = TestDeviceProxy("STAT/RECV/1") - self.assertEqual("RECV(stat/recv/1)", str(recv1_proxy)) - self.assertTrue(recv1_proxy.connected) - recv1_proxy.off() - self.assertEqual(DevState.OFF, recv1_proxy.state()) - # STAT/RECV/99 not defined in TangoDB - recv2_proxy = TestDeviceProxy("STAT/RECV/99") - self.assertEqual("LOFARDeviceProxy(STAT/RECV/99)", str(recv2_proxy)) - self.assertFalse(recv2_proxy.connected) diff --git a/tangostationcontrol/tangostationcontrol/integration_test/device_proxy.py b/tangostationcontrol/tangostationcontrol/integration_test/device_proxy.py index 79fe544c3eb3adfd423f3ae97923f97da822498b..d61e4f00a6a3afee2f8c2925dc61baa6deabedd0 100644 --- a/tangostationcontrol/tangostationcontrol/integration_test/device_proxy.py +++ b/tangostationcontrol/tangostationcontrol/integration_test/device_proxy.py @@ -4,13 +4,12 @@ import logging import time -from tango import DevSource -from tangostationcontrol.devices.lofar_device_proxy import LOFARDeviceProxy +from tango import DeviceProxy, DevSource logger = logging.getLogger() -class TestDeviceProxy(LOFARDeviceProxy): +class TestDeviceProxy(DeviceProxy): def __init__(self, *args, **kwargs): super(TestDeviceProxy, self).__init__(*args, **kwargs)