Remove unusable sitemap endpoint

It calls a data model method which is extremely slow and heavy, and it isn't even used anyway
This commit is contained in:
Joseph Schorr 2018-12-18 16:37:09 -05:00
parent 9e2c5417b8
commit 9190c046c7
4 changed files with 0 additions and 29 deletions

View file

@ -46,9 +46,3 @@ def test_search_pagination(query, authed_username, initialized_db):
next_repos = get_filtered_matching_repositories(query, filter_username=authed_username, offset=1)
assert repositories[0].id != next_repos[0].id
assert repositories[1].id == next_repos[0].id
def test_popular_repo_list(initialized_db):
onlypublic = model.repository.list_popular_public_repos(0, timedelta(weeks=1))
assert len(onlypublic) == 1
assert onlypublic[0] == ('public', 'publicrepo')