summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2017-06-11 15:33:09 +0200
committerJelle van der Waa <jelle@vdwaa.nl>2017-06-11 18:43:14 +0200
commite2741c209a9da55c57c4cc6a6da3b19e5cbd126e (patch)
treed30003f9be53d789ce11b9d436b19be05a461f19
parent7a6bfc744182ce91565584f418a6fbdad3bee471 (diff)
downloadarchweb-e2741c209a9da55c57c4cc6a6da3b19e5cbd126e.tar.gz
archweb-e2741c209a9da55c57c4cc6a6da3b19e5cbd126e.zip
public: test missing urls
Test the urls which are part of public but where not tested yet due to missing fixtures.
-rw-r--r--public/tests.py18
1 files changed, 18 insertions, 0 deletions
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)