conftest.py file-level

at sha256:a · View file ↗ · Intel ↗

History
1 files
1 commits
0 hotspots
0 🧊 dead
0 💥 blast risk
sha256:8 docs: queue board-identity follow-ups so they survive the session Capt… · aaronrene · Sep 5, 2026
1 """Shared pytest fixtures for adapter tests."""
2
3 from __future__ import annotations
4
5 from pathlib import Path
6
7 import pytest
8
9 from adapters.config import OverseerConfig
10 from tests.support import load_fixture_config, write_config
11
12
13 @pytest.fixture
14 def repo_root(tmp_path: Path) -> Path:
15 (tmp_path / ".overseer").mkdir()
16 return tmp_path
17
18
19 @pytest.fixture
20 def git_only_config(repo_root: Path) -> OverseerConfig:
21 return load_fixture_config(repo_root, "config-git-only.yaml")
22
23
24 @pytest.fixture
25 def muse_only_config(repo_root: Path) -> OverseerConfig:
26 return load_fixture_config(repo_root, "config-muse-only.yaml")
27
28
29 @pytest.fixture
30 def muse_git_mirror_config(repo_root: Path) -> OverseerConfig:
31 return load_fixture_config(repo_root, "config-muse-git-mirror.yaml")