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
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
"""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
|
||||
Reference in New Issue
Block a user