mirror of
https://github.com/usestrix/strix.git
synced 2026-08-20 02:23:35 +02:00
feat(tui): replace Textual with a Go/Bubble Tea interface (#941)
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
PROJECT_ROOT = Path(__file__).resolve().parents[1]
|
||||
|
||||
|
||||
def test_wheel_build_requires_go(tmp_path: Path) -> None:
|
||||
uv = shutil.which("uv")
|
||||
if uv is None:
|
||||
pytest.skip("uv is required for the packaging smoke test")
|
||||
|
||||
env = os.environ.copy()
|
||||
env["PATH"] = str(tmp_path / "path-without-go")
|
||||
result = subprocess.run( # noqa: S603
|
||||
[uv, "build", "--wheel", "--out-dir", str(tmp_path / "dist")],
|
||||
cwd=PROJECT_ROOT,
|
||||
env=env,
|
||||
check=False,
|
||||
capture_output=True,
|
||||
text=True,
|
||||
)
|
||||
|
||||
assert result.returncode != 0
|
||||
assert "Go 1.24 or newer is required" in result.stdout + result.stderr
|
||||
Reference in New Issue
Block a user