test_task_crm/tests/conftest.py

11 lines
339 B
Python

"""Pytest configuration & shared fixtures."""
from __future__ import annotations
import sys
from pathlib import Path
# Ensure project root is on sys.path so that `app` package imports succeed during tests.
PROJECT_ROOT = Path(__file__).resolve().parents[1]
if str(PROJECT_ROOT) not in sys.path:
sys.path.insert(0, str(PROJECT_ROOT))