Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-kulak committed Dec 18, 2023
1 parent 367cf31 commit 73192f7
Showing 1 changed file with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -937,20 +937,18 @@ def test_create_request_with_session_authenticator():
}



@pytest.mark.parametrize("input_config, expected_authenticator_class",
[
pytest.param(
{"auth": {"type": "token"}, "credentials": {"api_key": "some_key"}},
ApiKeyAuthenticator,
id="test_create_requester_with_selective_authenticator_and_token_selected",
),
pytest.param(
{"auth": {"type": "oauth"}, "credentials": {"client_id": "ABC"}},
DeclarativeOauth2Authenticator,
id="test_create_requester_with_selective_authenticator_and_oauth_selected",
),
]
@pytest.mark.parametrize("input_config, expected_authenticator_class", [
pytest.param(
{"auth": {"type": "token"}, "credentials": {"api_key": "some_key"}},
ApiKeyAuthenticator,
id="test_create_requester_with_selective_authenticator_and_token_selected",
),
pytest.param(
{"auth": {"type": "oauth"}, "credentials": {"client_id": "ABC"}},
DeclarativeOauth2Authenticator,
id="test_create_requester_with_selective_authenticator_and_oauth_selected",
),
]
)
def test_create_requester_with_selective_authenticator(input_config, expected_authenticator_class):
content = """
Expand Down

0 comments on commit 73192f7

Please sign in to comment.