Trying to get the Auth Types to work right.

Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
Cliff Hill
2024-01-29 16:09:27 -05:00
parent e64e500561
commit 77bc5fbfb1
4 changed files with 10 additions and 9 deletions

View File

@@ -8,6 +8,7 @@ from app import encryption
from app.enums import (
AgreementStatus,
AgreementType,
AuthType,
NotificationStatus,
RecipientType,
TemplateType,
@@ -328,7 +329,7 @@ def test_user_can_use_webauthn_if_platform_admin(sample_user, is_platform_admin)
@pytest.mark.parametrize(
("auth_type", "can_use_webauthn"),
[("email_auth", False), ("sms_auth", False), ("webauthn_auth", True)],
[(AuthType.EMAIL, False), (AuthType.SMS, False), (AuthType.WEBAUTHN, True)],
)
def test_user_can_use_webauthn_if_they_login_with_it(
sample_user, auth_type, can_use_webauthn