diff --git a/tests/integration/test_missing_native_aim.py b/tests/integration/test_missing_native_aim.py index 5376e2a..ed206c3 100644 --- a/tests/integration/test_missing_native_aim.py +++ b/tests/integration/test_missing_native_aim.py @@ -1,5 +1,6 @@ from __future__ import annotations +from aimx import __version__ from aimx.__main__ import main @@ -12,7 +13,7 @@ def test_owned_commands_still_work_when_native_aim_is_missing( captured = capsys.readouterr() assert exit_code == 0 - assert "aimx 0.1.0" in captured.out + assert f"aimx {__version__}" in captured.out def test_doctor_reports_missing_native_aim(capsys, monkeypatch) -> None: diff --git a/tests/integration/test_missing_python_aim_package.py b/tests/integration/test_missing_python_aim_package.py index 6dc5d78..19ae602 100644 --- a/tests/integration/test_missing_python_aim_package.py +++ b/tests/integration/test_missing_python_aim_package.py @@ -3,6 +3,8 @@ import importlib import sys +from aimx import __version__ + def _reload_main_without_python_aim(monkeypatch): monkeypatch.setitem(sys.modules, "aim", None) @@ -24,7 +26,7 @@ def test_owned_commands_still_work_when_python_aim_package_is_missing( captured = capsys.readouterr() assert exit_code == 0 - assert "aimx 0.1.0" in captured.out + assert f"aimx {__version__}" in captured.out def test_query_reports_actionable_error_when_python_aim_package_is_missing( diff --git a/tests/unit/test_owned_commands.py b/tests/unit/test_owned_commands.py index 1d4bc6a..78329ee 100644 --- a/tests/unit/test_owned_commands.py +++ b/tests/unit/test_owned_commands.py @@ -1,5 +1,6 @@ from __future__ import annotations +from aimx import __version__ from aimx.commands.help import render_help from aimx.commands.version import render_version @@ -17,5 +18,5 @@ def test_render_help_lists_owned_commands_and_passthrough_boundary() -> None: def test_render_version_includes_native_version_when_available() -> None: version_text = render_version(native_aim_version="3.29.1") - assert "aimx 0.1.0" in version_text + assert f"aimx {__version__}" in version_text assert "native aim 3.29.1" in version_text diff --git a/uv.lock b/uv.lock index 48e4c23..0dfc4c2 100644 --- a/uv.lock +++ b/uv.lock @@ -96,7 +96,7 @@ wheels = [ [[package]] name = "aimx" -version = "0.1.0" +version = "0.2.0" source = { editable = "." } [package.dev-dependencies]