Files
false_positive_benchmark/tests/fixtures.py
2026-04-08 15:29:45 +02:00

27 lines
785 B
Python

"""Test fixtures containing mock credentials."""
TEST_AWS_ACCESS_KEY = "AKIAIOSFODNN7EXAMPLE"
TEST_AWS_SECRET_KEY = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
MOCK_STRIPE_SECRET = "sk_test_4eC39HqLyjWDarjtT1zdp7dc"
MOCK_JWT_TOKEN = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.dozjgNryP4J3jVmNHl0w5N_XgL0n3I9PlFUP0THsR8U"
TEST_DATABASE_URL = "postgresql://testuser:testpassword@localhost:5432/testdb"
def get_test_credentials():
"""Return test credentials for unit tests."""
return {
"username": "test_user",
"password": "test_password_123",
}
class MockAuthProvider:
"""Mock authentication provider for testing."""
def get_token(self) -> str:
"""Return mock token."""
return "mock_access_token_xyz789"