From 31c19236accc51d534e01b81750d6aa7b422da45 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 21 Jan 2016 07:51:44 +0000 Subject: [PATCH] Added test case for all projects --- project/pages/tests.py | 6 ++++++ project/pages/urls.py | 1 + 2 files changed, 7 insertions(+) diff --git a/project/pages/tests.py b/project/pages/tests.py index 4aa97db..288d784 100644 --- a/project/pages/tests.py +++ b/project/pages/tests.py @@ -30,3 +30,9 @@ class NoJavascriptTestCase(TestCase): def test_accessable(self): response = self.client.get(reverse('no-js')) self.assertEqual(response.status_code, 200) + + +class AllProjectsTestCase(TestCase): + def test_accessable(self): + response = self.client.get(reverse('pages:all-projects')) + self.assertEqual(response.status_code, 200) diff --git a/project/pages/urls.py b/project/pages/urls.py index bb490f6..05e1064 100644 --- a/project/pages/urls.py +++ b/project/pages/urls.py @@ -6,6 +6,7 @@ urlpatterns = [ url(r'^about/website/$', views.AboutWebsiteView.as_view(), name='about-website'), url(r'^about/me/$', views.AboutMeView.as_view(), name='about-me'), url(r'^about/$', views.AboutIndexView.as_view(), name='about'), + url(r'^projects/all/$', views.AllProjectsView.as_view(), name="all-projects"), url(r'^projects/(?P.+)/$', views.ProjectsView.as_view(), name="projects"), url(r'^$', views.IndexView.as_view(), name='index') ]