Files
032-birthday-wisher/tests/unit/test_constants.py
T
Tirsvad 6d5aa89cd8 Set up the project skeleton (MIL-001)
pyproject.toml (Python >=3.13, no runtime dependencies, pytest as dev extra),
Python .gitignore, .env.example, constants.py, assignment data files,
Doxyfile and a smoke test.

Task: MIL-001#1
Task: MIL-001#2
Task: MIL-001#3
Task: MIL-001#4
Refs #2
Refs #3
Refs #4
Refs #5
2026-10-17 15:15:06 +08:00

16 lines
436 B
Python

"""Smoke test: the package imports and the constants are consistent."""
from birthday_wisher import constants
def test_letter_file_pattern_has_number_placeholder() -> None:
assert "{number}" in constants.LETTER_FILE_PATTERN
def test_csv_columns_start_with_name_and_email() -> None:
assert constants.CSV_COLUMNS[:2] == ("name", "email")
def test_smtp_port_expects_starttls() -> None:
assert constants.SMTP_PORT == 587