Added test case for all projects
This commit is contained in:
parent
060d929d94
commit
31c19236ac
2 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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<project>.+)/$', views.ProjectsView.as_view(), name="projects"),
|
||||
url(r'^$', views.IndexView.as_view(), name='index')
|
||||
]
|
||||
|
|
Reference in a new issue