From 9034955153cd160f57cb022c9c3bb087a1b0874c Mon Sep 17 00:00:00 2001 From: Adriaan de Beer <adriaan@spaceadvisory.com> Date: Wed, 30 Sep 2020 12:06:26 +0000 Subject: [PATCH] ST-456 Slight modification - still not very truthful but more acceptable --- post-deployment/features/tango-commands.feature | 4 ++-- post-deployment/tests/test_tango-commands.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/post-deployment/features/tango-commands.feature b/post-deployment/features/tango-commands.feature index c45529a0..d11cacd2 100644 --- a/post-deployment/features/tango-commands.feature +++ b/post-deployment/features/tango-commands.feature @@ -22,8 +22,8 @@ Scenario: Test DevString command Scenario: Test short_spectrum_ro Given a device called sys/tg_test/1 - Then the attribute short_spectrum_ro is True + Then the attribute short_spectrum_ro is tango._tango.AttrQuality.ATTR_VALID Scenario: Test short_spectrum Given a device called sys/tg_test/1 - Then the attribute short_spectrum is True \ No newline at end of file + Then the attribute short_spectrum is tango._tango.AttrQuality.ATTR_VALID \ No newline at end of file diff --git a/post-deployment/tests/test_tango-commands.py b/post-deployment/tests/test_tango-commands.py index 54f12fae..68304c8a 100644 --- a/post-deployment/tests/test_tango-commands.py +++ b/post-deployment/tests/test_tango-commands.py @@ -86,7 +86,7 @@ def check_attribute(device_proxy, attribute_name, expected_value): if attr.data_format == tango._tango.AttrDataFormat.SCALAR: assert str(attr.value) == expected_value elif attr.data_format == tango._tango.AttrDataFormat.SPECTRUM: - assert str(attr.name) == attribute_name + assert str(attr.quality) == expected_value @then(parsers.parse("the result is {expected_result}")) def check_command(device_proxy, call_command, expected_result): -- GitLab