From 275399a72cd637fc4480966651030b42fa12ffc0 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Tue, 2 Dec 2025 22:33:34 +0100 Subject: [PATCH] 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) --- pyproject.toml | 2 +- python_pkg/extract_links/__init__.py | 1 + python_pkg/screen_locker/__init__.py | 1 + python_pkg/stockfish_analysis/__init__.py | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 python_pkg/extract_links/__init__.py create mode 100644 python_pkg/screen_locker/__init__.py create mode 100644 python_pkg/stockfish_analysis/__init__.py diff --git a/pyproject.toml b/pyproject.toml index af4a6a1..9c96cd8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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_*"] diff --git a/python_pkg/extract_links/__init__.py b/python_pkg/extract_links/__init__.py new file mode 100644 index 0000000..b9ff976 --- /dev/null +++ b/python_pkg/extract_links/__init__.py @@ -0,0 +1 @@ +"""Extract links module.""" diff --git a/python_pkg/screen_locker/__init__.py b/python_pkg/screen_locker/__init__.py new file mode 100644 index 0000000..45a0d61 --- /dev/null +++ b/python_pkg/screen_locker/__init__.py @@ -0,0 +1 @@ +"""Screen locker module.""" diff --git a/python_pkg/stockfish_analysis/__init__.py b/python_pkg/stockfish_analysis/__init__.py new file mode 100644 index 0000000..3b10f0d --- /dev/null +++ b/python_pkg/stockfish_analysis/__init__.py @@ -0,0 +1 @@ +"""Stockfish analysis module."""