added ok and nok on points

This commit is contained in:
2025-07-03 11:41:17 +02:00
parent 813b7849fe
commit 0370de60e0
5 changed files with 31 additions and 14 deletions

View File

@@ -10,6 +10,7 @@ def test_should_status_code_ok(client):
def test_should_display_sorry_with_unknown_email(client):
email = "test@test.com"
response = client.post('/showSummary', data={"email": email})
print(session)
assert "_flashes" in session
assert session["_flashes"] == [("message", "Sorry, that email wasn't found")]
@@ -17,6 +18,7 @@ def test_should_display_sorry_with_unknown_email(client):
def test_shoul_display_page_on_known_email(client):
email = "admin@irontemple.com"
response = client.post('/showSummary', data={"email": email})
print(session)
soup = BeautifulSoup(response.data, 'html.parser')
assert soup.h2.text == "Welcome, "+email