Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
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
Binary file modified system_tests/secrets.tar.enc
Binary file not shown.
15 changes: 8 additions & 7 deletions system_tests/system_tests_async/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import google.auth.transport.requests
import google.auth.transport.urllib3
import pytest
import pytest_asyncio
import requests
import urllib3

Expand All @@ -30,37 +31,37 @@
TOKEN_INFO_URL = "https://www.googleapis.com/oauth2/v3/tokeninfo"


@pytest.fixture
@pytest_asyncio.fixture
def service_account_file():
"""The full path to a valid service account key file."""
yield sync_conftest.SERVICE_ACCOUNT_FILE


@pytest.fixture
@pytest_asyncio.fixture
def impersonated_service_account_file():
"""The full path to a valid service account key file."""
yield sync_conftest.IMPERSONATED_SERVICE_ACCOUNT_FILE


@pytest.fixture
@pytest_asyncio.fixture
def authorized_user_file():
"""The full path to a valid authorized user file."""
yield sync_conftest.AUTHORIZED_USER_FILE


@pytest.fixture
@pytest_asyncio.fixture
async def aiohttp_session():
async with aiohttp.ClientSession(auto_decompress=False) as session:
yield session


@pytest.fixture(params=["aiohttp"])
@pytest_asyncio.fixture(params=["aiohttp"])
async def http_request(request, aiohttp_session):
"""A transport.request object."""
yield aiohttp_requests.Request(aiohttp_session)


@pytest.fixture
@pytest_asyncio.fixture
async def token_info(http_request):
"""Returns a function that obtains OAuth2 token info."""

Expand All @@ -85,7 +86,7 @@ async def _token_info(access_token=None, id_token=None):
yield _token_info


@pytest.fixture
@pytest_asyncio.fixture
async def verify_refresh(http_request):
"""Returns a function that verifies that credentials can be refreshed."""

Expand Down