Finished to 4.5 Front page HTML now generated from a template

chap4
Jason Zhu 2020-11-07 21:25:24 +11:00
parent 747e0c7009
commit 1fb94c9d74
2 changed files with 9 additions and 2 deletions

View File

@ -39,7 +39,8 @@ class NewVisitorTest(unittest.TestCase):
table = self.browser.find_element_by_id('id_list_table') table = self.browser.find_element_by_id('id_list_table')
rows = table.find_element_by_tag_name('tr') rows = table.find_element_by_tag_name('tr')
self.assertTrue( self.assertTrue(
any(row.text == '1: Buy peacock feathers' for row in rows) any(row.text == '1: Buy peacock feathers' for row in rows),
"New to-do item did not appear in table"
) )
# There is still a text box inviting her to add another item. She # There is still a text box inviting her to add another item. She

View File

@ -1,3 +1,9 @@
<html> <html>
<head>
<title>To-Do lists</title> <title>To-Do lists</title>
</head>
<body>
<h1>Your To-Do list</h1>
<input id="id_new_item"/>
</body>
</html> </html>