1
Fork 0

Added test case for all projects

This commit is contained in:
Jake Howard 2016-01-21 07:51:44 +00:00
parent 060d929d94
commit 31c19236ac
2 changed files with 7 additions and 0 deletions

View file

@ -30,3 +30,9 @@ class NoJavascriptTestCase(TestCase):
def test_accessable(self): def test_accessable(self):
response = self.client.get(reverse('no-js')) response = self.client.get(reverse('no-js'))
self.assertEqual(response.status_code, 200) 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)

View file

@ -6,6 +6,7 @@ urlpatterns = [
url(r'^about/website/$', views.AboutWebsiteView.as_view(), name='about-website'), 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/me/$', views.AboutMeView.as_view(), name='about-me'),
url(r'^about/$', views.AboutIndexView.as_view(), name='about'), url(r'^about/$', views.AboutIndexView.as_view(), name='about'),
url(r'^projects/all/$', views.AllProjectsView.as_view(), name="all-projects"),
url(r'^projects/(?P<project>.+)/$', views.ProjectsView.as_view(), name="projects"), url(r'^projects/(?P<project>.+)/$', views.ProjectsView.as_view(), name="projects"),
url(r'^$', views.IndexView.as_view(), name='index') url(r'^$', views.IndexView.as_view(), name='index')
] ]