diff --git a/tests/test_utils_hastepics.py b/tests/test_utils_hastepics.py index 10a7b9ab0..70132a21a 100644 --- a/tests/test_utils_hastepics.py +++ b/tests/test_utils_hastepics.py @@ -43,6 +43,25 @@ def test_get_pv_connect_false_and_true(): def test_motor_init_strips_suffixes(): m1 = Motor("TEST:SIM:M1.VAL") + + # Afficher les attributs de base de epics.Motor + print("Attributes of epics.Motor:") + print(" _init_list:", getattr(epics.Motor, "_init_list", [])) + print(" _extras:", getattr(epics.Motor, "_extras", {})) + + # Afficher les attributs de ton objet Motor + print("\nAttributes of Motor (custom):") + print(" _init_list:", getattr(m1, "_init_list", [])) + print(" _extras:", getattr(m1, "_extras", {})) + + # Afficher tous les attributs de epics.Motor (via dir()) + print("\nAll attributes of epics.Motor:") + print(dir(epics.Motor)) + + # Afficher tous les attributs de ta classe Motor (via dir()) + print("\nAll attributes of Motor (custom):") + print(dir(m1)) + assert m1._prefix == "TEST:SIM:M1" m2 = Motor("TEST:SIM:M2.")