Skip to content
Snippets Groups Projects
Commit 90349551 authored by Adriaan de Beer's avatar Adriaan de Beer
Browse files

ST-456 Slight modification - still not very truthful but more acceptable

parent a39bbda2
No related branches found
No related tags found
No related merge requests found
...@@ -22,8 +22,8 @@ Scenario: Test DevString command ...@@ -22,8 +22,8 @@ Scenario: Test DevString command
Scenario: Test short_spectrum_ro Scenario: Test short_spectrum_ro
Given a device called sys/tg_test/1 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 Scenario: Test short_spectrum
Given a device called sys/tg_test/1 Given a device called sys/tg_test/1
Then the attribute short_spectrum is True Then the attribute short_spectrum is tango._tango.AttrQuality.ATTR_VALID
\ No newline at end of file \ No newline at end of file
...@@ -86,7 +86,7 @@ def check_attribute(device_proxy, attribute_name, expected_value): ...@@ -86,7 +86,7 @@ def check_attribute(device_proxy, attribute_name, expected_value):
if attr.data_format == tango._tango.AttrDataFormat.SCALAR: if attr.data_format == tango._tango.AttrDataFormat.SCALAR:
assert str(attr.value) == expected_value assert str(attr.value) == expected_value
elif attr.data_format == tango._tango.AttrDataFormat.SPECTRUM: 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}")) @then(parsers.parse("the result is {expected_result}"))
def check_command(device_proxy, call_command, expected_result): def check_command(device_proxy, call_command, expected_result):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment