Commit ba859e54 authored by Patrick James Ong's avatar Patrick James Ong

Changed function names to match hero names

parent 563888b8
Pipeline #832 failed with stages
...@@ -12,20 +12,20 @@ class HomePageTest(TestCase): ...@@ -12,20 +12,20 @@ class HomePageTest(TestCase):
class CloudPageTest(TestCase): class CloudPageTest(TestCase):
def test_uses_hero_template(self): def test_uses_cloud_template(self):
response = self.client.get('/hero/cloud/') response = self.client.get('/hero/cloud/')
self.assertTemplateUsed(response, 'detail_cloud.html') self.assertTemplateUsed(response, 'detail_cloud.html')
class JesterPageTest(TestCase): class JesterPageTest(TestCase):
def test_uses_hero_template(self): def test_uses_jester_template(self):
response = self.client.get('/hero/jester/') response = self.client.get('/hero/jester/')
self.assertTemplateUsed(response, 'detailed_jester.html') self.assertTemplateUsed(response, 'detailed_jester.html')
class SunfloweyPageTest(TestCase): class SunfloweyPageTest(TestCase):
def test_uses_hero_template(self): def test_uses_sunflowey_template(self):
response = self.client.get('/hero/sunflowey/') response = self.client.get('/hero/sunflowey/')
self.assertTemplateUsed(response, 'detailed_sunflowey.html') self.assertTemplateUsed(response, 'detailed_sunflowey.html')
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