"""jwtauth[testing] fixtures.""" import logging from typing import Callable import pytest from jwtauth.testing.secretsmanager import JwtAuthSecretsManager from jwtauth.testing.utils import login_from_secrets_manager logger = logging.getLogger(__name__) @pytest.fixture(scope="session") def generate_bearer_token() -> Callable[..., str]: """Generate an auth token for the given credentials.""" return login_from_secrets_manager @pytest.fixture(scope="session") def jwtauth_secrets_manager() -> JwtAuthSecretsManager: """Fixture for a JwtAuthSecretsManager""" return JwtAuthSecretsManager()