Commit 7640c818 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

packages: test head/$arch group view

parent 3283144d
......@@ -62,7 +62,6 @@ class PackageSearchJson(TestCase):
fixtures = ['main/fixtures/arches.json', 'main/fixtures/repos.json',
'main/fixtures/package.json']
def test_invalid(self):
response = self.client.get('/packages/search/json/')
self.assertEqual(response.status_code, 200)
......@@ -235,11 +234,19 @@ def test_packages_download(self):
self.assertEqual(response.status_code, 404)
# TODO: Figure out how to fake a mirror
def test_head(self):
response = self.client.head('/packages/core/x86_64/linux/')
self.assertEqual(response.status_code, 200)
def test_groups(self):
response = self.client.get('/groups/')
self.assertEqual(response.status_code, 200)
def test_groups_detail(self):
def test_groups_arch(self):
response = self.client.get('/groups/x86_64/')
self.assertEqual(response.status_code, 200)
def test_groups_details(self):
response = self.client.get('/groups/x86_64/base/')
self.assertEqual(response.status_code, 404)
# FIXME: add group fixtures.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment