Fix conftest setup

This commit is contained in:
Tim Kächele 2025-04-21 11:46:02 +02:00
parent 87c81fd7c0
commit 9645fccfb9

View File

@ -1,3 +1,14 @@
import os
import sys
# NOTE: Not sure if that was really necessary or whether this
# is just my quirky venv setup
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
PROJECT_ROOT = os.path.abspath(os.path.join(CURRENT_DIR, '..'))
if PROJECT_ROOT not in sys.path:
sys.path.insert(0, PROJECT_ROOT)
import pytest as pytest import pytest as pytest
from starlette.testclient import TestClient from starlette.testclient import TestClient