From c9b33c0d26c8ce06c60e1e7b41c616a2a6092693 Mon Sep 17 00:00:00 2001 From: thijs snijder <snijder@astron.nl> Date: Tue, 26 Apr 2022 12:58:34 +0200 Subject: [PATCH] small bug fixes --- tangostationcontrol/tangostationcontrol/devices/snmp_device.py | 1 - .../tangostationcontrol/test/clients/test_mib_loading.py | 2 +- .../tangostationcontrol/test/devices/test_snmp_device.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tangostationcontrol/tangostationcontrol/devices/snmp_device.py b/tangostationcontrol/tangostationcontrol/devices/snmp_device.py index 3ee8c6dfd..b5bfd8395 100644 --- a/tangostationcontrol/tangostationcontrol/devices/snmp_device.py +++ b/tangostationcontrol/tangostationcontrol/devices/snmp_device.py @@ -15,7 +15,6 @@ from tangostationcontrol.common.entrypoint import entry from tangostationcontrol.devices.lofar_device import lofar_device -from tango import DeviceProxy from tango.server import device_property, command import os diff --git a/tangostationcontrol/tangostationcontrol/test/clients/test_mib_loading.py b/tangostationcontrol/tangostationcontrol/test/clients/test_mib_loading.py index de2f78383..6abf0f52e 100644 --- a/tangostationcontrol/tangostationcontrol/test/clients/test_mib_loading.py +++ b/tangostationcontrol/tangostationcontrol/test/clients/test_mib_loading.py @@ -23,7 +23,7 @@ class TestMibLoading(base.TestCase): """ - abs_dir = path.dirname(__file__) + self.rel_dir + abs_dir = path.dirname(__file__) + "/" + self.rel_dir loader = mib_loader(abs_dir) loader.load_pymib(self.mib) diff --git a/tangostationcontrol/tangostationcontrol/test/devices/test_snmp_device.py b/tangostationcontrol/tangostationcontrol/test/devices/test_snmp_device.py index 5ed7a3af9..6289b2a33 100644 --- a/tangostationcontrol/tangostationcontrol/test/devices/test_snmp_device.py +++ b/tangostationcontrol/tangostationcontrol/test/devices/test_snmp_device.py @@ -27,7 +27,7 @@ class TestSNMPDevice(base.TestCase): # Patch DeviceProxy to allow making the proxies during initialisation # that we otherwise avoid using - for device in [snmp_device, lofar_device]: + for device in [lofar_device]: proxy_patcher = mock.patch.object( device, 'DeviceProxy') proxy_patcher.start() -- GitLab