Skip to content

Commit

Permalink
Add more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
pcmxgti committed Jan 23, 2023
1 parent feb6767 commit 980b1fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -841,10 +841,11 @@ def test_user_mfa_challenge_with_no_mfas(sample_headers, sample_json_response):
@pytest.mark.parametrize(
"return_value,side_effect,expected",
[
({"status": "SUCCESS"}, None, 0),
({"status": "SUCCESS", "sessionToken": "pytest"}, None, 0),
({"status": "SUCCESS", "factorResult": "SUCCESS"}, None, 0),
({"status": "MFA_CHALLENGE", "factorResult": "REJECTED"}, None, 2),
({"status": "MFA_CHALLENGE", "factorResult": "TIMEOUT"}, None, 2),
({"status": "UNKNOWN", "factorResult": "UNKNOWN"}, None, 2),
(
{
"status": "MFA_CHALLENGE",
Expand Down

0 comments on commit 980b1fd

Please sign in to comment.