Skip to content
Snippets Groups Projects
Commit bc259901 authored by Stefano Di Frischia's avatar Stefano Di Frischia
Browse files

L2SS-846: fix integration test bug

parent ef1380aa
No related branches found
No related tags found
1 merge request!374Resolve L2SS-846: add disable_hardware to devices
...@@ -21,6 +21,7 @@ class TestDeviceTemperatureManager(AbstractTestBases.TestDeviceBase): ...@@ -21,6 +21,7 @@ class TestDeviceTemperatureManager(AbstractTestBases.TestDeviceBase):
def setUp(self): def setUp(self):
"""Intentionally recreate the device object in each test""" """Intentionally recreate the device object in each test"""
self.recv_proxy = self.setup_recv_proxy() self.recv_proxy = self.setup_recv_proxy()
self.sdp_proxy = self.setup_sdp_proxy()
super().setUp("STAT/TemperatureManager/1") super().setUp("STAT/TemperatureManager/1")
def tearDown(self): def tearDown(self):
...@@ -36,7 +37,17 @@ class TestDeviceTemperatureManager(AbstractTestBases.TestDeviceBase): ...@@ -36,7 +37,17 @@ class TestDeviceTemperatureManager(AbstractTestBases.TestDeviceBase):
self.assertTrue(recv_proxy.is_attribute_polled(f"HBAT_LED_on_RW")) self.assertTrue(recv_proxy.is_attribute_polled(f"HBAT_LED_on_RW"))
return recv_proxy return recv_proxy
def setup_sdp_proxy(self):
# setup SDP, on which this device depends
sdp_proxy = TestDeviceProxy("STAT/SDP/1")
sdp_proxy.off()
sdp_proxy.warm_boot()
sdp_proxy.set_defaults()
return sdp_proxy
def test_alarm(self): def test_alarm(self):
self.setup_recv_proxy()
self.setup_sdp_proxy()
self.proxy.off() self.proxy.off()
self.proxy.initialise() self.proxy.initialise()
self.proxy.on() self.proxy.on()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment