From 1fb94c9d741dabe43cc254d0c137746b75a8bc23 Mon Sep 17 00:00:00 2001 From: JasonHomeWorkstationUbuntu Date: Sat, 7 Nov 2020 21:25:24 +1100 Subject: [PATCH] Finished to 4.5 Front page HTML now generated from a template --- src/functional_tests.py | 3 ++- src/lists/templates/home.html | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/functional_tests.py b/src/functional_tests.py index eb76b4a..328aeb1 100644 --- a/src/functional_tests.py +++ b/src/functional_tests.py @@ -39,7 +39,8 @@ class NewVisitorTest(unittest.TestCase): table = self.browser.find_element_by_id('id_list_table') rows = table.find_element_by_tag_name('tr') 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 diff --git a/src/lists/templates/home.html b/src/lists/templates/home.html index 94d4105..4a51ff3 100644 --- a/src/lists/templates/home.html +++ b/src/lists/templates/home.html @@ -1,3 +1,9 @@ - To-Do lists + + To-Do lists + + +

Your To-Do list

+ + \ No newline at end of file