Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/integration/test_missing_native_aim.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

from aimx import __version__
from aimx.__main__ import main


Expand All @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion tests/integration/test_missing_python_aim_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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(
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/test_owned_commands.py
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading