From e2741c209a9da55c57c4cc6a6da3b19e5cbd126e Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Sun, 11 Jun 2017 15:33:09 +0200 Subject: public: test missing urls Test the urls which are part of public but where not tested yet due to missing fixtures. --- public/tests.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/public/tests.py b/public/tests.py index aaf5f847..9e05ff31 100644 --- a/public/tests.py +++ b/public/tests.py @@ -2,6 +2,9 @@ from django.test import TestCase class PublicTest(TestCase): + fixtures = ['main/fixtures/arches.json', 'main/fixtures/repos.json', + 'main/fixtures/package.json', 'main/fixtures/groups.json', + 'devel/fixtures/staff_groups.json'] def test_index(self): response = self.client.get('/') @@ -35,3 +38,18 @@ class PublicTest(TestCase): response = self.client.get('/download/') self.assertEqual(response.status_code, 200) + def test_master_keys(self): + response = self.client.get('/master-keys/') + self.assertEqual(response.status_code, 200) + + def test_master_keys_json(self): + response = self.client.get('/master-keys/json/') + self.assertEqual(response.status_code, 200) + + def test_feeds(self): + response = self.client.get('/feeds/') + self.assertEqual(response.status_code, 200) + + def test_people(self): + response = self.client.get('/people/developers/') + self.assertEqual(response.status_code, 200) -- cgit v1.2.3-55-g3dc8