From 5ae8c116385440ab591437741832a0bf621f7be7 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Thu, 16 Jul 2015 01:25:19 +0300 Subject: [PATCH] Extra list repos test to mimic the conditions of a known issue with one customer --- test/test_api_usage.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/test_api_usage.py b/test/test_api_usage.py index 94e7c3117..6c54bfa1b 100644 --- a/test/test_api_usage.py +++ b/test/test_api_usage.py @@ -1297,6 +1297,16 @@ class TestListRepos(ApiTestCase): json = self.getJsonResponse(RepositoryList, params=dict(last_modified=True, popularity=True)) self.assertTrue(len(json['repositories']) > 2) + def test_listrepos_allparams(self): + self.login(ADMIN_ACCESS_USER) + json = self.getJsonResponse(RepositoryList, + params=dict(namespace=ORGANIZATION, + public=False, + last_modified=True)) + + for repo in json['repositories']: + self.assertEquals(ORGANIZATION, repo['namespace']) + class TestViewPublicRepository(ApiTestCase): def test_normalview(self):