diff --git a/CHANGELOG.md b/CHANGELOG.md index 18cf30b..9a7ea32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 publish path, since `created` never fires for drafts that get published ### Fixed +- `test_version_command` asserted a hardcoded `0.2.0` in the version output, + so the `version` command failed once the package bumped to `0.2.1a0`. The + test now compares against `__version__`. - Python 3.10 support dropped: `requires-python` is now `^3.11`, the CI matrix no longer tests 3.10, and the pydantic pin was raised to `>=2.12` so `pydantic-core` ships a cp314 wheel and the Python 3.14 CI job no diff --git a/tests/test_cli.py b/tests/test_cli.py index 00d928c..516214e 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -7,7 +7,7 @@ import yaml from click.testing import CliRunner -from hier_config_cli import cli +from hier_config_cli import __version__, cli # Test `version` command @@ -17,7 +17,7 @@ def test_version_command() -> None: result = runner.invoke(cli, ["version"]) assert result.exit_code == 0 assert "hier-config-cli version" in result.output - assert "0.2.0" in result.output + assert __version__ in result.output # Test `list_platforms` command