diff --git a/src/test_target_2/constants.py b/src/test_target_2/constants.py index 616f651..75bc36f 100644 --- a/src/test_target_2/constants.py +++ b/src/test_target_2/constants.py @@ -1,3 +1,4 @@ """Package-level constants for test_target_2.""" DEFAULT_HELLO_TARGET: str = "world" +DEFAULT_FAREWELL: str = "goodbye" diff --git a/tests/test_constants.py b/tests/test_constants.py index 29edbd7..a6599dd 100644 --- a/tests/test_constants.py +++ b/tests/test_constants.py @@ -17,3 +17,11 @@ def test_constants_module_importable() -> None: """Test that constants module can be imported from package.""" # Import succeeds at module scope; this test verifies the object exists assert hasattr(constants, "DEFAULT_HELLO_TARGET") + + +def test_default_farewell_value() -> None: + assert constants.DEFAULT_FAREWELL == "goodbye" + + +def test_default_farewell_type() -> None: + assert isinstance(constants.DEFAULT_FAREWELL, str)