From 32de05fc0491c4737918da1c9e23b37e2ff104f9 Mon Sep 17 00:00:00 2001 From: Zachary Lentz Date: Fri, 15 Nov 2024 17:48:26 -0800 Subject: [PATCH] MNT: adjust test ioc to not have identical values in multiple PVs --- beams/tests/mock_iocs/various_types_ioc.py | 4 ++-- beams/tests/test_bin.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/beams/tests/mock_iocs/various_types_ioc.py b/beams/tests/mock_iocs/various_types_ioc.py index a2a68b8..039751d 100644 --- a/beams/tests/mock_iocs/various_types_ioc.py +++ b/beams/tests/mock_iocs/various_types_ioc.py @@ -29,9 +29,9 @@ class VariousTypesIOC(PVGroup): ) ENUM = pvproperty( - value=2, + value=0, dtype=ChannelType.ENUM, - enum_strings=["e", "i", "pi"] + enum_strings=["apple", "pumpkin", "shepherd's"] ) diff --git a/beams/tests/test_bin.py b/beams/tests/test_bin.py index ac3a32b..22ff2e0 100644 --- a/beams/tests/test_bin.py +++ b/beams/tests/test_bin.py @@ -132,8 +132,8 @@ def test_collect_pvinfo( elif info.pvname == "VAR:TYPES:ENUM": assert info.python_name == "var_types_enum" assert info.dtype == "ENUM" - assert info.value == 2 - assert info.enum_strings == ["e", "i", "pi"] + assert info.value == 0 + assert info.enum_strings == ["apple", "pumpkin", "shepherd's"] else: raise RuntimeError(f"Unexpected pvname {info.pvname}")