pytango tests fail with latest TangoTest
Using cppTango 3bf8bed3 (Merge branch 'backport/musl-fixes' into '9.3-backports', 2021-09-14 and Tango-Test e6dd4d64 (Merge branch 'github/fork/katrze89/tango-readwrite' into 'main', 2021-02-23) I get the following failing tests.
FAILED tests/test_client.py::test_attribute_list_query[Synchronous]
FAILED tests/test_client.py::test_attribute_list_query_ex[Synchronous]
FAILED tests/test_client.py::test_attribute_list_query[Asyncio]
FAILED tests/test_client.py::test_attribute_list_query_ex[Asyncio]
FAILED tests/test_client.py::test_attribute_list_query[Gevent]
FAILED tests/test_client.py::test_attribute_list_query_ex[Gevent]
FAILED tests/test_client.py::test_attribute_list_query[Futures]
FAILED tests/test_client.py::test_attribute_list_query_ex[Futures]
Sample output:
tango_test = TangoTest(sys/tg_test/17)
def test_attribute_list_query_ex(tango_test):
attrs = tango_test.attribute_list_query_ex()
assert all(isinstance(a, AttributeInfoEx) for a in attrs)
> assert set(a.name for a in attrs) == set(ATTRIBUTES)
E AssertionError: assert {'State', 'St..._scalar', ...} == {'State', 'St..._scalar', ...}
E Extra items in the left set:
E 'enum_scalar'
E Full diff:
E {
E 'State',
E 'Status',
E 'ampli',...
E
E ...Full output truncated (62 lines hidden), use '-vv' to show
So this looks like enum_scalar is not expected from TangoTest. This is a new attribute.