Commit ef5f9264 authored by Alec Wang's avatar Alec Wang

added heroes.html page

parent 87cf7ab7
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Will of the Wisps</title>
</head>
<body>
<li><a href="{% url 'hero_cloud' %}">Cloud(HP:600,Damage:57)</a></li>
<li><a href="{% url 'hero_sunflowey' %}">Sunflowey(HP:650,Damage:43)</a></li>
<li><a href="{% url 'hero_jester' %}">Jester(HP:660,Damage:64)</a></li>
</body>
</html>
\ No newline at end of file
from django.shortcuts import render
from django.http import HttpResponse
def heroes(request):
return HttpResponse('<html><title>Hero Wiki</title></html>')
return render(request, 'heroes.html')
def hero_cloud(request):
......
from selenium import webdriver
import unittest
class NewVisitorTest(unittest.TestCase):
def setUp(self):
self.browser = webdriver.Firefox()
......@@ -19,7 +20,7 @@ class NewVisitorTest(unittest.TestCase):
# She sees a list containing three heroes with their corresponding
# names, health points, and damage
self.assertIn('Cloud ')
# When she selects one of the heroes, she is sent to another page
# containing more information about the hero (additional stats, lore, image).
......
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