60 lines
1.5 KiB
Python
60 lines
1.5 KiB
Python
# tests/fixtures/__init__.py
|
|
"""Test fixtures for the FastAPI application test suite."""
|
|
|
|
# tests/unit/__init__.py
|
|
"""Unit tests - fast, isolated component tests."""
|
|
|
|
# tests/unit/models/__init__.py
|
|
"""Database and API model unit tests."""
|
|
|
|
# tests/unit/utils/__init__.py
|
|
"""Utility function unit tests."""
|
|
|
|
# tests/unit/services/__init__.py
|
|
"""Service layer unit tests."""
|
|
|
|
# tests/integration/__init__.py
|
|
"""Integration tests - multiple components working together."""
|
|
|
|
# tests/integration/api/__init__.py
|
|
"""API integration tests."""
|
|
|
|
# tests/integration/api/v1/__init__.py
|
|
"""API v1 endpoint integration tests."""
|
|
|
|
# tests/integration/security/__init__.py
|
|
"""Security integration tests."""
|
|
|
|
# tests/performance/__init__.py
|
|
"""Performance and load tests."""
|
|
|
|
# tests/system/__init__.py
|
|
"""System-level tests - full application behavior."""
|
|
|
|
# tests/integration/conftest.py
|
|
"""Integration test specific fixtures."""
|
|
import pytest
|
|
|
|
# Add any integration-specific fixtures here if needed
|
|
|
|
# tests/unit/conftest.py
|
|
"""Unit test specific fixtures."""
|
|
import pytest
|
|
|
|
# Add any unit-specific fixtures here if needed
|
|
|
|
# tests/performance/conftest.py
|
|
"""Performance test specific fixtures."""
|
|
import pytest
|
|
|
|
@pytest.fixture
|
|
def performance_db_session(db):
|
|
"""Database session optimized for performance testing"""
|
|
# You can add performance-specific DB configurations here
|
|
return db
|
|
|
|
# tests/system/conftest.py
|
|
"""System test specific fixtures."""
|
|
import pytest
|
|
|
|
# Add any system-specific fixtures here if needed |