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

L2SS-685: Lofar views return ints for booleans

parent 28a82916
No related branches found
No related tags found
1 merge request!290Resolve L2SS-685 "Add alerta docker"
...@@ -63,7 +63,7 @@ class TestArchiver(BaseIntegrationTestCase): ...@@ -63,7 +63,7 @@ class TestArchiver(BaseIntegrationTestCase):
""" """
polling_period=1000 polling_period=1000
archive_event_period=3000 archive_event_period=3000
attr_fullname = 'stat/recv/1/recvtr_translator_busy_r' # boolean attr_fullname = 'stat/recv/1/recvtr_translator_busy_r' # boolean, but lofar view returns int
self.archiver.add_attribute_to_archiver(attr_fullname, polling_period, archive_event_period) self.archiver.add_attribute_to_archiver(attr_fullname, polling_period, archive_event_period)
time.sleep(3) time.sleep(3)
# Test if the attribute has been correctly added to event subscriber # Test if the attribute has been correctly added to event subscriber
...@@ -78,7 +78,7 @@ class TestArchiver(BaseIntegrationTestCase): ...@@ -78,7 +78,7 @@ class TestArchiver(BaseIntegrationTestCase):
self.assertEqual('stat/recv/1',item.device) # column device self.assertEqual('stat/recv/1',item.device) # column device
self.assertEqual('recvtr_translator_busy_r',item.name) # column attribute self.assertEqual('recvtr_translator_busy_r',item.name) # column attribute
self.assertEqual(datetime,type(item.data_time)) # column datetime self.assertEqual(datetime,type(item.data_time)) # column datetime
self.assertEqual(bool,type(item.value)) # column value self.assertEqual(int,type(item.value)) # column value
""" """
# Remove attribute at the end of the test # Remove attribute at the end of the test
......
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