feat: add package skeleton, constants.py and smoke tests

Task: MIL-001#3
Task: MIL-001#7
This commit is contained in:
2026-10-14 21:21:44 +08:00
parent c823dd0264
commit 7ba340a33a
3 changed files with 81 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
"""Smoke test: the package and its constants import and hold sane values."""
import password_manager
from password_manager import constants
def test_package_has_version() -> None:
assert password_manager.__version__
def test_data_file_name_is_json() -> None:
assert constants.DATA_FILE_NAME.endswith(".json")
def test_password_length_bounds_are_ordered() -> None:
assert constants.MIN_LETTERS <= constants.MAX_LETTERS
assert constants.MIN_SYMBOLS <= constants.MAX_SYMBOLS
assert constants.MIN_DIGITS <= constants.MAX_DIGITS