diff --git a/tests/api/test_study.py b/tests/api/test_study.py index 0f3886d16..70e00b556 100644 --- a/tests/api/test_study.py +++ b/tests/api/test_study.py @@ -70,7 +70,7 @@ def test_public(self, client, study, study_private): assert d['attributes']['accession'] == "MGYS00001234" def test_csv(self, client, studies): - url = reverse("emgapi_v1:studies-list", kwargs={'format': 'csv', 'ordering': 'last_update'}) + url = reverse("emgapi_v1:studies-list", kwargs={'format': 'csv'}) response = client.get(url) assert response.status_code == status.HTTP_200_OK assert response.get('Content-Disposition') == 'attachment; filename="Study.csv"' diff --git a/tests/test_utils/emg_fixtures.py b/tests/test_utils/emg_fixtures.py index 17e5b706a..f8275c9a8 100644 --- a/tests/test_utils/emg_fixtures.py +++ b/tests/test_utils/emg_fixtures.py @@ -127,7 +127,7 @@ def super_study(study, study_private, biome): @pytest.fixture def studies(biome): studies = [] - for pk in range(1, 50): + for pk in range(49, 0, -1): studies.append( emg_models.Study( biome=biome,