This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user