scripts/tests/reproduction_utils/conftest.py
scripts/tests/reproduction_utils/conftest.pyBrowse 41 files
205 tokens
841 bytes
Token encoding: o200k_base
Snapshot a9fb1c3
← Back to SKILL.md
1import subprocess2import sys3from pathlib import Path4 5import pytest6 7sys.path.insert(0, str(Path(__file__).resolve().parents[2]))8 9import mechanical_refactor_reproduction_utils as rr10from mechanical_refactor_reproduction_utils import (11 Repro,12 _def_span,13 _find_class,14 _find_def,15 _replace_span,16 _slice_span,17 dedent,18 exec_command,19 git_add_and_commit,20 verify_mechanical_refactor,21)22from reproduction_testlib import _git23 24 25@pytest.fixture26def repo(tmp_path: Path) -> Path:27 root = tmp_path / "repo"28 root.mkdir()29 _git(root, "init", "-q")30 _git(root, "config", "user.email", "test@example.com")31 _git(root, "config", "user.name", "test")32 _git(root, "config", "commit.gpgsign", "false")33 return root34 35 36# --- exec_command --------------------------------------------------------------37