Fix test discovery and coverage for python_pkg modules

- Update pytest testpaths: PYTHON -> python_pkg (PYTHON was empty)
- Add missing __init__.py to: stockfish_analysis, screen_locker, extract_links
- Now coverage correctly reports 0% for untested modules:
  - screen_locker/screen_lock.py (279 stmts, 0% coverage)
  - stockfish_analysis/analyze_chess_game.py (327 stmts, 0% coverage)
This commit is contained in:
Krzysztof kuhy Rudnicki 2025-12-02 22:33:34 +01:00
parent 2518528c86
commit 0ce938fec4
4 changed files with 4 additions and 1 deletions

View File

@ -181,7 +181,7 @@ exclude_dirs = ["tests", ".venv", "Bash/ffmpeg-build", "python_pkg/lichess_bot/.
# PYTEST - Testing framework configuration
# ============================================================================
[tool.pytest.ini_options]
testpaths = ["tests", "PYTHON", "articles"]
testpaths = ["tests", "python_pkg", "articles"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]

View File

@ -0,0 +1 @@
"""Extract links module."""

View File

@ -0,0 +1 @@
"""Screen locker module."""

View File

@ -0,0 +1 @@
"""Stockfish analysis module."""