Skip to content
Snippets Groups Projects
Commit c9b33c0d authored by Taya Snijder's avatar Taya Snijder
Browse files

small bug fixes

parent 933d8df2
No related branches found
No related tags found
1 merge request!288Resolve L2SS-446 "Extend snmp client to support mib files"
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
from tangostationcontrol.common.entrypoint import entry from tangostationcontrol.common.entrypoint import entry
from tangostationcontrol.devices.lofar_device import lofar_device from tangostationcontrol.devices.lofar_device import lofar_device
from tango import DeviceProxy
from tango.server import device_property, command from tango.server import device_property, command
import os import os
......
...@@ -23,7 +23,7 @@ class TestMibLoading(base.TestCase): ...@@ -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 = mib_loader(abs_dir)
loader.load_pymib(self.mib) loader.load_pymib(self.mib)
......
...@@ -27,7 +27,7 @@ class TestSNMPDevice(base.TestCase): ...@@ -27,7 +27,7 @@ class TestSNMPDevice(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
for device in [snmp_device, lofar_device]: for device in [lofar_device]:
proxy_patcher = mock.patch.object( proxy_patcher = mock.patch.object(
device, 'DeviceProxy') device, 'DeviceProxy')
proxy_patcher.start() proxy_patcher.start()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment