This commit is contained in:
@@ -140,7 +140,7 @@ def test_preload_old_file(tmp_path, caplog):
|
||||
assert "PV preload file too old" in logs
|
||||
|
||||
# Vérifie que le PV n’a pas été créé (pas dans le cache)
|
||||
assert is_pv_in_cache(pvname)
|
||||
assert not is_pv_in_cache(pvname)
|
||||
|
||||
# offload()
|
||||
def test_offload(tmp_path, caplog):
|
||||
@@ -164,7 +164,7 @@ def test_offload(tmp_path, caplog):
|
||||
offload()
|
||||
|
||||
# Vérifie que le fichier contient bien les bons noms
|
||||
names = pickle.load(open(fake_file, "rb"))
|
||||
names = std_pickle.load(open(fake_file, "rb"))
|
||||
assert pvname_3 in names
|
||||
assert pvname_4 in names
|
||||
|
||||
|
||||
Reference in New Issue
Block a user