VScode can now test hurray

This commit is contained in:
Jonas Linter
2025-10-08 16:14:00 +02:00
parent 52f95bd677
commit 44abe3ed35
3 changed files with 62 additions and 22 deletions

13
conftest.py Normal file
View File

@@ -0,0 +1,13 @@
"""Pytest configuration and path setup for VS Code.
This configuration file ensures that VS Code can properly discover and run tests
by setting up the Python path to include the src directory.
"""
import sys
from pathlib import Path
# Add the src directory to Python path for VS Code test discovery
src_path = Path(__file__).parent / "src"
if str(src_path) not in sys.path:
sys.path.insert(0, str(src_path))