Files
plex-playlist/backend/conftest.py
Cliff Hill 2c8f424a81
Some checks failed
Tests / Frontend Tests (TypeScript + Vue + Yarn Berry) (push) Failing after 7m49s
Tests / Backend Tests (Python 3.13 + uv) (push) Failing after 14m36s
Fixing everything, making the project structure ready for real code.
Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
2025-10-23 12:58:32 -04:00

23 lines
763 B
Python

"""Pytest configuration for automatic typeguard integration."""
from typeguard import install_import_hook
def pytest_configure(config) -> None: # noqa: ARG001
"""Configure pytest to use typeguard automatically."""
# Install typeguard import hook to automatically check all functions
# with type hints in the backend package during test runs
install_import_hook("backend")
# Also check any other packages in src/
install_import_hook("src")
print("🛡️ Automatic typeguard hooks installed for test run")
def pytest_runtest_setup(item):
"""Set up typeguard for each test run."""
# The import hook is automatically enabled via pytest_configure
# All functions with type hints will be automatically checked
pass