Fix failing tests

This includes a fix for the commit hash test, which was not referencing the Flask app in a valid way.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
Carlo Costino
2024-03-19 15:53:38 -04:00
parent b4986e4170
commit 4b1db40cbd
3 changed files with 21 additions and 7 deletions

View File

@@ -221,7 +221,9 @@ def test_if_existing_user_accepts_twice_they_redirect_to_sign_in(
page.select("main p")[0].text.strip(),
) == (
"You need to sign in again",
"We signed you out because you have not used Notify for a while.",
# TODO: Improve this given Login.gov configuration.
# "We signed you out because you have not used Notify for a while.",
"You have left to use Login.gov to sign in",
)
# We dont let people update `email_access_validated_at` using an
# already-accepted invite
@@ -335,7 +337,9 @@ def test_existing_user_of_service_get_redirected_to_signin(
page.select("main p")[0].text.strip(),
) == (
"You need to sign in again",
"We signed you out because you have not used Notify for a while.",
# TODO: Improve this given Login.gov configuration.
# "We signed you out because you have not used Notify for a while.",
"You have left to use Login.gov to sign in",
)
assert mock_accept_invite.call_count == 1
@@ -424,7 +428,9 @@ def test_existing_signed_out_user_accept_invite_redirects_to_sign_in(
page.select("main p")[0].text.strip(),
) == (
"You need to sign in again",
"We signed you out because you have not used Notify for a while.",
# TODO: Improve this given Login.gov configuration.
# "We signed you out because you have not used Notify for a while.",
"You have left to use Login.gov to sign in",
)