- Zweite (schwächere) Definition von _abs_path() und IS_CHANGED() entfernt; die erste, korrekte Version (mit .txt-Handling und Backslash-Normalisierung) bleibt - __init__.py mit try/except für relative Imports gesichert (pytest-Kompatibilität) - pytest-Setup eingerichtet: pytest.ini, conftest.py, tests/test_load_description_node.py - .gitignore um __pycache__ und .pytest_cache erweitert Closes #3
7 lines
220 B
Python
7 lines
220 B
Python
"""pytest configuration: expose project modules for direct import in tests."""
|
|
import sys
|
|
import os
|
|
|
|
# Add project root to sys.path so test files can import modules directly
|
|
sys.path.insert(0, os.path.dirname(__file__))
|