Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Commit 8b57de9

Browse files
committed
registration email tests
1 parent bba1f87 commit 8b57de9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_auth.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ def test_registration_success(client):
1616
retval = register(client, "sam@codewizardshq.com", "cwhqsam",
1717
"supersecurepassword", "Sam", "Hoffman")
1818
assert retval.get_json()["status"] == "success"
19-
assert len(outbox) == 1
20-
assert "Sheldon, you've accepted" in outbox[0].html
19+
assert len(outbox) == 2
20+
assert "Sheldon, your account has been created" in outbox[0].html
21+
assert "Welcome to Defeat the Dragon, Sheldon!" in outbox[1].html
2122

2223

2324
def test_registration_failure_invalid_password(client):

0 commit comments

Comments
 (0)