Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/core/azure-core/azure/core/pipeline/policies/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# --------------------------------------------------------------------------

from .base import HTTPPolicy, SansIOHTTPPolicy
from .credentials import BearerTokenCredentialPolicy
from .authentication import BearerTokenCredentialPolicy
from .custom_hook import CustomHookPolicy
from .redirect import RedirectPolicy
from .retry import RetryPolicy
Expand Down Expand Up @@ -55,7 +55,7 @@

try:
from .base_async import AsyncHTTPPolicy
from .credentials_async import AsyncBearerTokenCredentialPolicy
from .authentication_async import AsyncBearerTokenCredentialPolicy
from .redirect_async import AsyncRedirectPolicy
from .retry_async import AsyncRetryPolicy
__all__.extend([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# --------------------------------------------------------------------------
from azure.core.pipeline import PipelineRequest, PipelineResponse
from azure.core.pipeline.policies import AsyncHTTPPolicy
from azure.core.pipeline.policies.credentials import _BearerTokenCredentialPolicyBase
from azure.core.pipeline.policies.authentication import _BearerTokenCredentialPolicyBase


class AsyncBearerTokenCredentialPolicy(_BearerTokenCredentialPolicyBase, AsyncHTTPPolicy):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
# --------------------------------------------------------------------------
from unittest.mock import Mock
from azure.core.pipeline import AsyncPipeline, PipelineResponse
from azure.core.pipeline.policies import HTTPPolicy
from azure.core.pipeline.policies.credentials_async import AsyncBearerTokenCredentialPolicy
from azure.core.pipeline.policies import AsyncBearerTokenCredentialPolicy, HTTPPolicy
from azure.core.pipeline.transport import HttpRequest, AsyncHttpTransport
import pytest

Expand Down