File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
simple_repository_server/tests/integration Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,9 @@ async def test_repo_with_dependency_injection__project_page(
107107
108108 assert response .status_code == 200
109109 assert response .headers ['content-type' ] == 'application/vnd.pypi.simple.v1+json'
110- assert response .json () == {
110+
111+ response_data = response .json ()
112+ expected_data = {
111113 "meta" : {
112114 "api-version" : "1.1" ,
113115 },
@@ -132,6 +134,10 @@ async def test_repo_with_dependency_injection__project_page(
132134 ],
133135 }
134136
137+ # The version sort order is not currently deterministic, so test that separately.
138+ assert set (response_data .pop ("versions" )) == set (expected_data .pop ("versions" ))
139+ assert response_data == expected_data
140+
135141
136142@pytest .mark .asyncio
137143async def test_repo_with_dependency_injection__project_page__redirect (
You can’t perform that action at this time.
0 commit comments