Cleanup in paths.py and related documents

This commit is contained in:
2026-11-21 00:08:35 +01:00
parent 1575bec4ac
commit a419167939
4 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ Configuration lives in `pyproject.toml` (`[tool.pytest.ini_options]`):
| `conftest.py` | Fixtures: `env`, `installed`, `manager`, `log_warnings`, singleton reset |
| `support.py` | Example data (`EN`, `DE`, dialog keys) and the `Env` helper class |
| `test_normalize.py` | Language ID normalization, fallback chains |
| `test_paths.py` | `ki18n.paths` (PyInstaller / source checkout) |
| `test_paths.py` | `ki18n.paths` (PyInstaller / source checkout, per-user data directories) |
| `test_construction.py` | Constructor, singleton, `project_root`/`local_root`, data directories |
| `test_discovery.py` | `get_available_languages()`, user and installed resources |
| `test_loading.py` | Validation and merging of `strings.json`, regional layers |
+2 -2
View File
@@ -1,4 +1,4 @@
"""Tests for ``ki18n.paths`` (PyInstaller / source checkout detection, data directories)."""
"""Tests for ``ki18n.paths`` (PyInstaller bundle detection, per-user data directories)."""
import sys
from pathlib import Path
@@ -23,7 +23,7 @@ def test_is_frozen_returns_bool(monkeypatch):
assert paths.is_frozen() is True
def test_source_checkout_uses_parent_of_package_directory(monkeypatch):
def test_not_frozen_uses_parent_of_package_directory(monkeypatch):
monkeypatch.setattr(sys, "frozen", False, raising=False)
assert paths.bundle_root() == Path(paths.__file__).resolve().parent.parent