[PATCH 1/4] Enforce ordering of bundles in REST test
Daniel Axtens
dja at axtens.net
Mon Sep 4 01:14:41 AEST 2017
This is required to make the tests pass on a recent version of
postgres.
Signed-off-by: Daniel Axtens <dja at axtens.net>
---
patchwork/tests/test_rest_api.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/patchwork/tests/test_rest_api.py b/patchwork/tests/test_rest_api.py
index abffd17fddec..d4a84bd8c5ad 100644
--- a/patchwork/tests/test_rest_api.py
+++ b/patchwork/tests/test_rest_api.py
@@ -738,7 +738,7 @@ class TestBundleAPI(APITestCase):
# authenticated user
# should see the public and private bundle
self.client.force_authenticate(user=user)
- resp = self.client.get(self.api_url())
+ resp = self.client.get(self.api_url() + '?order=id')
self.assertEqual(status.HTTP_200_OK, resp.status_code)
self.assertEqual(2, len(resp.data))
for bundle_rsp, bundle_obj in zip(
--
2.11.0
More information about the Patchwork
mailing list