fix: test failing due to unstable FS ordering between OS (#2438)

This commit is contained in:
Yohan Boniface 2025-01-20 21:34:28 +01:00 committed by GitHub
commit 4ce8f6515d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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"}