Update tests/test_utils_pvpreload.py
Run CI Tests / test (push) Successful in 1m6s

This commit is contained in:
2025-08-07 21:30:47 +02:00
parent 7b41c2e596
commit c88cf4373d
+4 -6
View File
@@ -102,7 +102,7 @@ def test_preload_fichier_valide(tmp_path, caplog):
assert "PV preload done" in logs
def test_preload_fichier_trop_vieux(tmp_path, caplog):
def test_preload_old_file(tmp_path, caplog):
f = tmp_path / "too_old.pkl"
pvname = "TEST:PV_X"
@@ -134,11 +134,9 @@ def test_offload(tmp_path, caplog):
pvname_3 = "TEST:PV3"
pvname_4 = "TEST:PV4"
# Connecte 2 PVs
pv3 = get_pv(pvname_3, connect=True)
pv4 = get_pv(pvname_4, connect=True)
assert pv3.wait_for_connection(timeout=2)
assert pv4.wait_for_connection(timeout=2)
# Create 2 PVs
pv3 = get_pv(pvname_3)
pv4 = get_pv(pvname_4)
# Patch le fichier et le delay
with pytest.MonkeyPatch().context() as mp: