A pure move; behaviour unchanged. - models (L9, L7): llm, catalog, probe, render, render_anthropic, context - log (L7, L6): canonical, views - state (L8): store (was state), reconcile, worker, cancel, dump - knowledge (L10, L6.4): vault, memory - conversation (L5): transport, matrix - execution (L13): ssh (was execution), testing - authority (P3, P4, L4): actions - gitea, oplog, envfile stay at the top until each gains a second module. Every import, monkeypatch target, script and doc reference rewritten. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J5Utyfzw7gF7UhjRDEtjTk
19 lines
617 B
Python
19 lines
617 B
Python
"""Fixtures shared by every test tree."""
|
|
|
|
from collections.abc import Iterator
|
|
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
from nisse_core.execution.ssh import SSHHost
|
|
from nisse_core.execution.testing import local_sshd
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
def ssh_host(tmp_path_factory: pytest.TempPathFactory) -> Iterator[SSHHost]:
|
|
"""A throwaway sshd on this machine, standing in for the build VM (L13).
|
|
It runs as the current user, so remote paths are this machine's paths and
|
|
tests can inspect what a command did."""
|
|
with local_sshd(Path(tmp_path_factory.mktemp("sshd"))) as host:
|
|
yield host
|