Fixing tests and urls.

parent 33d23bb4
Pipeline #834 failed with stages
......@@ -9,19 +9,19 @@ class HomePageTest(TestCase):
class CloudTest(TestCase):
def test_uses_cloud_template(self):
response = self.client.get('/cloud/')
response = self.client.get('/heroes/cloud/')
self.assertTemplateUsed(response, 'detail_cloud.html')
class JesterTest(TestCase):
def test_uses_jester_template(self):
response = self.client.get('/jester/')
response = self.client.get('/heroes/jester/')
self.assertTemplateUsed(response, 'detail_jester.html')
class SunfloweyTest(TestCase):
def test_uses_sunflowey_template(self):
response = self.client.get('/sunflowey/')
response = self.client.get('/heroes/sunflowey/')
self.assertTemplateUsed(response, 'detail_sunflowey.html')
......
......@@ -4,8 +4,8 @@ from .views import HomeListView, CloudDetailView, JesterDetailView, SunfloweyDet
urlpatterns = [
url(r'^$', HomeListView.as_view(), name='home'),
url(r'^cloud/$', CloudDetailView.as_view(), name='detail_cloud'),
url(r'^jester/$', JesterDetailView.as_view(), name='detail_jester'),
url(r'^sunflowey/$', SunfloweyDetailView.as_view(), name='detail_sunflowey'),
url(r'^heroes/cloud/$', CloudDetailView.as_view(), name='detail_cloud'),
url(r'^heroes/jester/$', JesterDetailView.as_view(), name='detail_jester'),
url(r'^heroes/sunflowey/$', SunfloweyDetailView.as_view(), name='detail_sunflowey'),
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment