MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / in_repo_root

Function in_repo_root

tests/conftest.py:46–50  ·  view source on GitHub ↗
(repo_root: Path)

Source from the content-addressed store, hash-verified

44
45@pytest.fixture
46def in_repo_root(repo_root: Path) -> Iterator[Path]:
47 cwd = os.getcwd()
48 os.chdir(repo_root)
49 yield repo_root
50 os.chdir(cwd)
51
52
53@pytest.fixture

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected