Finished to 4.5 Front page HTML now generated from a template
parent
747e0c7009
commit
1fb94c9d74
|
@ -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
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
<html>
|
<html>
|
||||||
<title>To-Do lists</title>
|
<head>
|
||||||
|
<title>To-Do lists</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Your To-Do list</h1>
|
||||||
|
<input id="id_new_item"/>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue