Skip to content

Commit

Permalink
Run black
Browse files Browse the repository at this point in the history
  • Loading branch information
emilhe committed Jan 11, 2024
1 parent f89e3a6 commit 1a21a20
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/contrib/test_azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,31 +39,31 @@ def test_blueprint_factory():
azure_bp.token_url
== "https://login.microsoftonline.com/common/oauth2/v2.0/token"
)
assert (
azure_bp.auto_refresh_url is None
)
assert azure_bp.auto_refresh_url is None


def test_blueprint_factory_offline():
azure_bp = make_azure_blueprint(
client_id="foo", client_secret="bar", scope="user.read", redirect_to="index", offline=True
client_id="foo",
client_secret="bar",
scope="user.read",
redirect_to="index",
offline=True,
)
assert isinstance(azure_bp, OAuth2ConsumerBlueprint)
assert azure_bp.session.scope == ["user.read", "offline_access"]
assert azure_bp.session.base_url == "https://graph.microsoft.com"
assert azure_bp.session.client_id == "foo"
assert azure_bp.client_secret == "bar"
assert (
azure_bp.authorization_url
== "https://login.microsoftonline.com/common/oauth2/v2.0/authorize"
)
assert (
azure_bp.token_url
== "https://login.microsoftonline.com/common/oauth2/v2.0/token"
azure_bp.authorization_url
== "https://login.microsoftonline.com/common/oauth2/v2.0/authorize"
)
assert (
azure_bp.auto_refresh_url is azure_bp.token_url
azure_bp.token_url
== "https://login.microsoftonline.com/common/oauth2/v2.0/token"
)
assert azure_bp.auto_refresh_url is azure_bp.token_url


def test_blueprint_factory_with_domain_hint():
Expand Down

0 comments on commit 1a21a20

Please sign in to comment.