aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/tests/api_filesets.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/python/tests/api_filesets.py b/python/tests/api_filesets.py
index be023325..c69d567d 100644
--- a/python/tests/api_filesets.py
+++ b/python/tests/api_filesets.py
@@ -1,6 +1,5 @@
import pytest
-
from fatcat_openapi_client import *
from fixtures import *
@@ -52,13 +51,15 @@ def test_fileset(api):
# check that fields match
assert fs1.urls == fs2.urls
- assert fs1.manifest == fs2.manifest
+ # XXX: manifest return order is *NOT* currently stable
+ assert (fs1.manifest == fs2.manifest) or (fs1.manifest == list(reversed(fs2.manifest)))
assert fs1.release_ids == fs2.release_ids
assert fs1.extra == fs2.extra
# expansion
r1 = api.get_release(r1edit.ident, expand="filesets")
- assert r1.filesets[0].manifest == fs1.manifest
+ # XXX: manifest return order is *NOT* currently stable
+ assert (r1.filesets[0].manifest == fs1.manifest) or (r1.filesets[0].manifest == list(reversed(fs1.manifest)))
# get redirects (none)
assert api.get_fileset_redirects(fs2.ident) == []