import sys from pathlib import Path # Tests import backend modules the same way the app does (cwd = backend/). sys.path.insert(0, str(Path(__file__).resolve().parent.parent))