Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mvantellingen committed Oct 25, 2022
1 parent 8a51107 commit d31c024
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion tests/platform/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ def client_environment_settings(monkeypatch):
monkeypatch.setenv("CTP_CLIENT_SECRET", "client_secret")
monkeypatch.setenv("CTP_CLIENT_SCOPES", "some_scope")
monkeypatch.setenv("CTP_API_URL", "https://api.europe-west1.gcp.commercetools.com")
monkeypatch.setenv("CTP_AUTH_URL", "https://auth.europe-west1.gcp.commercetools.com")
monkeypatch.setenv(
"CTP_AUTH_URL", "https://auth.europe-west1.gcp.commercetools.com"
)


def test_client_with_environment_settings_is_setup(
Expand Down
10 changes: 8 additions & 2 deletions tests/platform/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@
@pytest.mark.parametrize(
"token_url,expected_url",
[
("https://auth.europe-west1.gcp.commercetools.com", "https://auth.europe-west1.gcp.commercetools.com/oauth/token"),
("https://auth.europe-west1.gcp.commercetools.com/oauth/token", "https://auth.europe-west1.gcp.commercetools.com/oauth/token"),
(
"https://auth.europe-west1.gcp.commercetools.com",
"https://auth.europe-west1.gcp.commercetools.com/oauth/token",
),
(
"https://auth.europe-west1.gcp.commercetools.com/oauth/token",
"https://auth.europe-west1.gcp.commercetools.com/oauth/token",
),
("https://auth.commercetools.co", "https://auth.commercetools.co/oauth/token"),
(
"https://auth.europe-west1.gcp.commercetools.com?test=123",
Expand Down

0 comments on commit d31c024

Please sign in to comment.