mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-01 04:09:46 -04:00
fixed testing
This commit is contained in:
12
.ds.baseline
12
.ds.baseline
@@ -586,20 +586,12 @@
|
||||
}
|
||||
],
|
||||
"tests/app/main/views/test_sign_in.py": [
|
||||
{
|
||||
"type": "Private Key",
|
||||
"filename": "tests/app/main/views/test_sign_in.py",
|
||||
"hashed_secret": "1348b145fa1a555461c1b790a2f66614781091e9",
|
||||
"is_verified": false,
|
||||
"line_number": 30,
|
||||
"is_secret": false
|
||||
},
|
||||
{
|
||||
"type": "Secret Keyword",
|
||||
"filename": "tests/app/main/views/test_sign_in.py",
|
||||
"hashed_secret": "8b8b69116ee882b5e987e330f55db81aba0636f9",
|
||||
"is_verified": false,
|
||||
"line_number": 103,
|
||||
"line_number": 91,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -710,5 +702,5 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"generated_at": "2024-06-11T20:36:19Z"
|
||||
"generated_at": "2024-06-11T21:01:12Z"
|
||||
}
|
||||
|
||||
@@ -20,25 +20,12 @@ def test_render_sign_in_template_for_new_user(client_request):
|
||||
# then these indices need to be 1 instead of 0.
|
||||
# Currently it's not enabled for the test or production environments.
|
||||
assert page.select("main a")[0].text == "Sign in with Login.gov"
|
||||
assert page.select("main a")[1].text == "Create Login.gov account"
|
||||
|
||||
# TODO: We'll have to adjust this depending on whether Login.gov is
|
||||
# enabled or not; fix this in the future.
|
||||
assert "Sign in again" not in normalize_spaces(page.text)
|
||||
|
||||
|
||||
def test_reformat_keystring():
|
||||
orig = "-----BEGIN PRIVATE KEY----- blah blah blah -----END PRIVATE KEY-----"
|
||||
expected = """-----BEGIN PRIVATE KEY-----
|
||||
blah
|
||||
blah
|
||||
blah
|
||||
-----END PRIVATE KEY-----
|
||||
"""
|
||||
reformatted = _reformat_keystring(orig)
|
||||
assert reformatted == expected
|
||||
|
||||
|
||||
def test_sign_in_explains_session_timeout(client_request):
|
||||
client_request.logout()
|
||||
page = client_request.get("main.sign_in", next="/foo")
|
||||
|
||||
Reference in New Issue
Block a user