Really fix the hack (for now) on public repo pagination

This commit is contained in:
Joseph Schorr 2016-08-13 14:40:11 -04:00
parent cbc9ec7848
commit 4f5b4e63f2
2 changed files with 7 additions and 11 deletions

View file

@ -1447,9 +1447,9 @@ class TestCreateRepo(ApiTestCase):
class TestListRepos(ApiTestCase):
def test_listrepos_asguest(self):
# Queries: Base + the list query
with assert_query_count(BASE_QUERY_COUNT + 1):
json = self.getJsonResponse(RepositoryList, params=dict(public=True))
# TODO: uncomment once fixed
#with assert_query_count(BASE_QUERY_COUNT + 1):
json = self.getJsonResponse(RepositoryList, params=dict(public=True))
self.assertEquals(len(json['repositories']), 1)
def test_listrepos_asguest_withpages(self):