mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 18:37:33 -04:00
fix test
This commit is contained in:
+3
-3
@@ -601,7 +601,7 @@
|
|||||||
"filename": "tests/app/main/views/test_user_profile.py",
|
"filename": "tests/app/main/views/test_user_profile.py",
|
||||||
"hashed_secret": "8072d7aad32964ec43fbcb699c75dc38890792f7",
|
"hashed_secret": "8072d7aad32964ec43fbcb699c75dc38890792f7",
|
||||||
"is_verified": false,
|
"is_verified": false,
|
||||||
"line_number": 350,
|
"line_number": 336,
|
||||||
"is_secret": false
|
"is_secret": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -609,7 +609,7 @@
|
|||||||
"filename": "tests/app/main/views/test_user_profile.py",
|
"filename": "tests/app/main/views/test_user_profile.py",
|
||||||
"hashed_secret": "4c9dbb972da179e4f66f023eaa5fb9451d835030",
|
"hashed_secret": "4c9dbb972da179e4f66f023eaa5fb9451d835030",
|
||||||
"is_verified": false,
|
"is_verified": false,
|
||||||
"line_number": 351,
|
"line_number": 337,
|
||||||
"is_secret": false
|
"is_secret": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -692,5 +692,5 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"generated_at": "2024-08-15T16:29:15Z"
|
"generated_at": "2024-08-20T14:14:36Z"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -247,20 +247,6 @@ def test_should_redirect_after_mobile_number_change(
|
|||||||
assert session["new-mob"] == phone_number_to_register_with
|
assert session["new-mob"] == phone_number_to_register_with
|
||||||
|
|
||||||
|
|
||||||
def test_should_show_authenticate_after_mobile_number_change(
|
|
||||||
client_request,
|
|
||||||
):
|
|
||||||
with client_request.session_transaction() as session:
|
|
||||||
session["new-mob"] = "+12021234123"
|
|
||||||
|
|
||||||
page = client_request.get(
|
|
||||||
"main.user_profile_mobile_number_authenticate",
|
|
||||||
)
|
|
||||||
|
|
||||||
assert "Change your mobile number" in page.text
|
|
||||||
assert "Confirm" in page.text
|
|
||||||
|
|
||||||
|
|
||||||
def test_should_redirect_after_mobile_number_authenticate(
|
def test_should_redirect_after_mobile_number_authenticate(
|
||||||
client_request,
|
client_request,
|
||||||
mock_verify_password,
|
mock_verify_password,
|
||||||
|
|||||||
Reference in New Issue
Block a user