conftest.py python
31 lines 779 B
Raw
sha256:8461d44b77376fbf06fa7c3e085d309e3010fd8d5886d63c63e69ce118811ad4 docs: record AFF-b feature-tip SHAs after AFF-b-ISR commit. Human 4 days ago
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")
File History 1 commit
sha256:8461d44b77376fbf06fa7c3e085d309e3010fd8d5886d63c63e69ce118811ad4 docs: record AFF-b feature-tip SHAs after AFF-b-ISR commit. Human 4 days ago