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

This commit is contained in:
2025-08-07 22:38:35 +02:00
parent b7483504d8
commit 0bb055f207
+9
View File
@@ -190,6 +190,15 @@ def test_offload(tmp_path, caplog):
offload()
assert fake_file.exists(), "Offload file not created"
assert fake_file.exists(), "Le fichier n'existe pas"
file_size = fake_file.stat().st_size
assert file_size > 0, f"Le fichier est vide (taille: {file_size} bytes)"
# Lisez le contenu brut pour inspection
file_content = fake_file.read_bytes()
print(f"Contenu brut du fichier (hex): {file_content.hex()}")
print(f"Contenu brut (str): {file_content!r}")
# Lire le contenu du fichier
with open(fake_file, "rb") as f: