From 8eccc628f60b3be2ed3eaa89458813238b957b6e Mon Sep 17 00:00:00 2001 From: tligui_y Date: Sun, 3 Aug 2025 19:45:41 +0200 Subject: [PATCH] Update tests/test_utils_hastyepics.py --- tests/test_utils_hastyepics.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tests/test_utils_hastyepics.py b/tests/test_utils_hastyepics.py index 4d3cd5648..49d3af876 100644 --- a/tests/test_utils_hastyepics.py +++ b/tests/test_utils_hastyepics.py @@ -56,18 +56,15 @@ def test_motor_initializes_device_attrs(): # Check that Motor correctly initializes all Device PVs from _init_list m = Motor("TEST:MOTOR") - # Debug prints - print("\n=== DEBUG INFO ===") - print("1. _init_list contents:", m._init_list) - print("2. All attributes on motor:", dir(m)) - print("3. PV objects state:") + + print("_init_list contents:", m._init_list) + print("All attributes on motor:", dir(m)) for attr in m._init_list: print(f"\nChecking attribute: {attr}") assert hasattr(m, attr), f"Motor is missing attribute: {attr}" pv = getattr(m, attr) - # Additional PV debug info print(f"PV object: {pv}") if pv is not None: print(f"PV name: {pv.pvname}") @@ -76,7 +73,6 @@ def test_motor_initializes_device_attrs(): assert isinstance(pv, epics.pv.PV), f"{attr} is not a valid PV object" assert not pv.connected, f"{attr} should not be connected yet" - print("\n=== END DEBUG ===") def test_motor_pv_connection_skipped_by_default(): # PVs should not be connected right after Motor creation