Fix tests. Ref #2376

This commit is contained in:
grossmj committed 2024-05-09 15:37:42 +07:00
1 parent 3df7af12e1
commit 081447ba2e
2 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -144,7 +144,7 @@ def fake_image(tmpdir):
path = str(tmpdir / "7200.bin")
with open(path, "wb+") as f:
f.write(b'\x7fELF\x01\x02\x01')
f.write(b'\x7fELF\x01\x01\x01')
os.chmod(path, stat.S_IREAD)
return path
@@ -168,7 +168,7 @@ async def test_images(compute_api, tmpdir, fake_image, fake_file):
assert response.json == [{"filename": "7200.bin",
"path": "7200.bin",
"filesize": 7,
"md5sum": "b0d5aa897d937aced5a6b1046e8f7e2e"
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c"
}]