- uv workspace tying nisse-core, nisse-dev, nisse-ops together (src layouts, workspace-sourced nisse-core dependency) - Placeholder hello-world entry points for both agents, calling through nisse-core to exercise the package boundary - pytest unit tests per package; integration tests (marker-gated) running the installed console scripts as subprocesses - ruff lint + format, nisse_* declared first-party - Gitea Actions workflow running lint, format check, unit and integration tests; scripts/check.sh mirrors it locally Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
17 lines
497 B
Python
17 lines
497 B
Python
"""Integration tests: run the installed console scripts as real subprocesses."""
|
|
|
|
import subprocess
|
|
|
|
import pytest
|
|
|
|
pytestmark = pytest.mark.integration
|
|
|
|
|
|
@pytest.mark.parametrize("agent", ["nisse-dev", "nisse-ops"])
|
|
def test_entry_point_runs_and_greets(agent: str) -> None:
|
|
result = subprocess.run(
|
|
[agent], capture_output=True, text=True, timeout=30, check=False
|
|
)
|
|
assert result.returncode == 0
|
|
assert result.stdout == f"Hello from {agent}, the house spirit is awake.\n"
|