Commit 25f42d67 authored by thisLexic's avatar thisLexic

added correct home_page.html

parent 7c8bf5e2
......@@ -164,3 +164,30 @@ JavaScript error: resource://gre/modules/Sqlite.jsm, line 912: Error: Connection
1583562755585 Marionette INFO Stopped listening on port 46727
JavaScript error: resource://activity-stream/lib/ActivityStreamPrefs.jsm, line 27: NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIPrefBranch.removeObserver]
JavaScript error: resource://services-settings/RemoteSettingsClient.jsm, line 144: Error: Unknown callback
1583563447740 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileUUBIXo"
1583563451511 addons.webextension.doh-rollout@mozilla.org WARN Loading extension 'doh-rollout@mozilla.org': Reading manifest: Invalid extension permission: networkStatus
1583563453114 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons
1583563453114 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: telemetry
1583563453115 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/
1583563453115 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader*
1583563459661 Marionette INFO Listening on port 36403
1583563459729 Marionette WARN TLS certificate errors will be ignored for this session
1583563461480 Marionette INFO Stopped listening on port 36403
1583563461723 addons.xpi-utils WARN Error: XPI database modified after shutdown began(resource://gre/modules/addons/XPIDatabase.jsm:1464:17) JS Stack trace: saveChanges@XPIDatabase.jsm:1464:17
makeAddonVisible@XPIDatabase.jsm:2267:10
addToDatabase@XPIDatabase.jsm:2194:12
install@XPIInstall.jsm:4338:27
_activateAddon@XPIInstall.jsm:4365:7
1583563461724 addons.xpi-utils WARN Error: XPI database modified after shutdown began(resource://gre/modules/addons/XPIDatabase.jsm:1464:17) JS Stack trace: saveChanges@XPIDatabase.jsm:1464:17
addToDatabase@XPIDatabase.jsm:2197:10
install@XPIInstall.jsm:4338:27
_activateAddon@XPIInstall.jsm:4365:7
1583563461819 addons.xpi-utils WARN Error: XPI database modified after shutdown began(resource://gre/modules/addons/XPIDatabase.jsm:1464:17) JS Stack trace: saveChanges@XPIDatabase.jsm:1464:17
makeAddonVisible@XPIDatabase.jsm:2267:10
addToDatabase@XPIDatabase.jsm:2194:12
install@XPIInstall.jsm:4338:27
_activateAddon@XPIInstall.jsm:4365:7
1583563461820 addons.xpi-utils WARN Error: XPI database modified after shutdown began(resource://gre/modules/addons/XPIDatabase.jsm:1464:17) JS Stack trace: saveChanges@XPIDatabase.jsm:1464:17
addToDatabase@XPIDatabase.jsm:2197:10
install@XPIInstall.jsm:4338:27
_activateAddon@XPIInstall.jsm:4365:7
<!DOCTYPE html>
<html>
<head>
<title>The Will of the Wisps Wiki</title>
</head>
<body>
<h1><a id="cName">Cloud</a></h1>
<dl>
<dt id="cHealth">Health Points</dt><dd>600</dd>
<dt id="cAttack">Base Attack Damage</dt><dd>57</dd>
</dl>
<h1><a id="jName">Jester</a></h1>
<dl>
<dt id="jHealth">Health Points</dt><dd>660</dd>
<dt id="jAttack">Base Attack Damage</dt><dd>64</dd>
</dl>
<h1><a id="sName">Sunflowey</a></h1>
<dl>
<dt id="sHealth">Health Points</dt><dd>650</dd>
<dt id="sAttack">Base Attack Damage</dt><dd>43</dd>
</dl>
</body>
</html>
\ No newline at end of file
from selenium import webdriver
import unittest
import time
class NewVisitorTest(unittest.TestCase):
def setUp(self):
self.browser = webdriver.Firefox()
......@@ -13,9 +11,12 @@ class NewVisitorTest(unittest.TestCase):
def test_can_display_a_heroes_list_and_more_information_per_hero(self):
# Widget has heard about a new wiki app for the game called The Will of the Wisps.
# She goes to check out its homepage
# self.browser.get('http://127.0.0.1:8000/')
self.browser.get('http://127.0.0.1:8000')
# She notices the page title and header mention
# 'The Will of the Wisps Wiki'
self.assertIn('The Will of the Wisps Wiki', self.browser.title)
self.fail('Finish the test!')
\ No newline at end of file
from django.shortcuts import render
from django.http import HttpResponse
def home_page(request):
return HttpResponse('hi')
\ No newline at end of file
return render(request, 'heroes/home_page.html')
\ No newline at end of file
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