Reformatted and cleaned up more tests.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
Carlo Costino
2023-09-11 16:51:30 -04:00
parent 72c8a46b8c
commit acb70b43cd
9 changed files with 126 additions and 115 deletions

View File

@@ -142,10 +142,10 @@ def test_should_return_200_when_email_is_not_gov_uk(
@pytest.mark.parametrize(
"email_address",
(
[
"notfound@example.gsa.gov",
"example@lsquo.net",
),
],
)
def test_should_add_user_details_to_session(
client_request,
@@ -215,7 +215,7 @@ def test_register_with_existing_email_sends_emails(
@pytest.mark.parametrize(
"email_address, expected_value",
("email_address", "expected_value"),
[
("first.last@example.com", "First Last"),
("first.middle.last@example.com", "First Middle Last"),
@@ -281,13 +281,13 @@ def test_shows_hidden_email_address_on_registration_page_from_invite(
@pytest.mark.parametrize(
"extra_data",
(
[
{},
# The username field is present in the page but the POST request
# should ignore it
{"username": "invited@user.com"},
{"username": "anythingelse@example.com"},
),
],
)
def test_register_from_invite(
client_request,