Update tests/test_utils_hastepics.py
Run CI Tests / test (push) Successful in 3m3s

This commit is contained in:
2025-08-11 17:39:40 +02:00
parent 046fe597c2
commit e7136fb7f6
+19
View File
@@ -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.")