Skip to content

Commit

Permalink
updates test_mfa_options method
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Aureliano da Silva Maia committed Oct 20, 2023
1 parent fe5863f commit 7339b91
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/unit/test_okta.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,9 @@ def test_mfa_options(sample_headers, sample_json_response, mocker):
mfa_challenge_url = "https://pytest"
pytest_config = Config(okta={"mfa_response": None})

mock_response = Mock()
mock_response.json.return_value = {"sessionToken": "pytest"}

mocker.patch("tokendito.user.get_input", return_value="012345")
mocker.patch.object(HTTP_client, "post", return_value=mock_response)

mocker.patch.object(HTTP_client, "post", return_value={"sessionToken": "pytest"})
selected_mfa_option = {"factorType": "token:software:totp"}
primary_auth["stateToken"] = "pytest"
mfa_verify = {"sessionToken": "pytest"}
Expand Down

0 comments on commit 7339b91

Please sign in to comment.