fix: test failing due to unstable FS ordering between OS

This commit is contained in:
Yohan Boniface 2025-01-20 21:12:06 +01:00
parent f53d435dfd
commit dc5a3a6b62

View file

@ -289,5 +289,5 @@ def test_should_remove_all_versions_on_delete(map, settings):
datalayer.geojson.storage.save(root / f"{path}.gz", ContentFile("{}"))
assert len(datalayer.geojson.storage.listdir(root)[1]) == 10 + before
datalayer.delete()
found = datalayer.geojson.storage.listdir(root)[1]
assert found == [other, f"{other}.gz"]
found = set(datalayer.geojson.storage.listdir(root)[1])
assert found == {other, f"{other}.gz"}