20 lines
615 B
Python
20 lines
615 B
Python
from __future__ import annotations
|
|
|
|
from {{ cookiecutter.package_name }} import __all__, __version__, get_config
|
|
from {{ cookiecutter.package_name }}.config.settings import Settings
|
|
|
|
|
|
def test_public_version_is_string() -> None:
|
|
assert isinstance(__version__, str)
|
|
|
|
|
|
def test_public_exports_include_stable_symbols() -> None:
|
|
assert set(__all__) >= {"__version__", "get_config", "Settings"}
|
|
|
|
|
|
def test_get_config_defaults_shape() -> None:
|
|
settings = get_config()
|
|
assert isinstance(settings, Settings)
|
|
assert settings.app.greeting == "Hello"
|
|
assert settings.database.path.endswith("/data.db")
|