Commit eebaba16 authored by martin0726's avatar martin0726

Added the html files

Added all required html files to the templates folder. Also brushed up a bit of the tests code
parent 1fd4df6b
<!DOCTYPE html>
<html>
<head>
<title>Detail - Cloud</title>
</head>
<body>
<img src="./cloud.png" style="width: 10vw;" />
<h1>Detail - Cloud</h1>
<dl>
<dt>Health Points</dt><dd>600</dd>
<dt>Base Attack Damage</dt><dd>57</dd>
<dt>Skills</dt><dd>Nimbus, Rain Cloud, Thunderbolt</dd>
<dt>Lore</dt><dd>I am a cloud. When I pee you call it 'rain'.</dd>
</dl>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Detail - Jester</title>
</head>
<body>
<img src="./jester.png" style="width: 10vw;"/>
<h1>Detail - Jester</h1>
<dl>
<dt>Health Points</dt><dd>660</dd>
<dt>Base Attack Damage</dt><dd>64</dd>
<dt>Skills</dt><dd>Laugh, Dance, Smile</dd>
<dt>Lore</dt><dd>I do it for the LOLs.</dd>
</dl>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>Detail - Sunflowey</title>
</head>
<body>
<img src="./sunflowey.png" style="width: 10vw;" />
<h1>Detail - Sunflowey</h1>
<dl>
<dt>Health Points</dt><dd>650</dd>
<dt>Base Attack Damage</dt><dd>43</dd>
<dt>Skills</dt><dd>Power Pellet, Sunshine, Pollen Punch</dd>
<dt>Lore</dt><dd>I am Sunflowey. Sometimes a sun, sometimes a flower.</dd>
</dl>
</body>
</html>
\ No newline at end of file
<html>
<head><title>The Willowisps Wiki</title></head>
</html>
\ No newline at end of file
...@@ -4,25 +4,26 @@ from django.test import TestCase ...@@ -4,25 +4,26 @@ from django.test import TestCase
class heroesTest(TestCase): class heroesTest(TestCase):
def test_heroes_link_returns_correct_html(self): def test_heroes_link_returns_correct_html(self):
response = self.client.get('/') response = self.client.get('/heroes')
self.assertTemplateUsed(response, 'home.html') self.assertTemplateUsed(response, 'home.html')
class heroCloudTest(TestCase): class heroCloudTest(TestCase):
def test_hero_cloud_page_returns_correct_html(self): def test_hero_cloud_page_returns_correct_html(self):
response = self.client.get('/tasks') response = self.client.get('/heroes/cloud')
self.assertTemplateUsed(response, 'task_list.html') self.assertTemplateUsed(response, 'task_list.html')
class heroSunflowey(TestCase): class heroSunflowey(TestCase):
def test_hero_sunflowey_page_returns_correct_html(self): def test_hero_sunflowey_page_returns_correct_html(self):
response = self.client.get('/tasks/new') response = self.client.get('/heroes/sunflowey')
self.assertTemplateUsed(response, 'task_create_form.html') self.assertTemplateUsed(response, 'task_create_form.html')
class heroJester(TestCase): class heroJester(TestCase):
def test_hero_jester_page_returns_correct_html(self): def test_hero_jester_page_returns_correct_html(self):
response = self.client.get('/tasks/new') response = self.client.get('/heroes/jester')
self.assertTemplateUsed(response, 'task_create_form.html')# Create your tests here. self.assertTemplateUsed(response, 'task_create_form.html')# Create your tests here.
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