Files
nisse/tests/integration/test_entry_points.py
dongarandClaude Fable 5 c1041a5ba1
CI / checks (push) Successful in 45s
CI / checks (pull_request) Successful in 6s
Scaffold hello-world apps, test frameworks, and Gitea CI
- 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>
2026-09-05 18:48:51 +00:00

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"