Cleanup in paths.py and related documents
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user