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

Function test_find_git_project_root

tests/test_conf.py:180–184  ·  view source on GitHub ↗
(tmp_path, monkeypatch)

Source from the content-addressed store, hash-verified

178
179@pytest.mark.usefixtures("in_repo_root")
180def test_find_git_project_root(tmp_path, monkeypatch):
181 assert git.find_git_project_root() == Path(os.getcwd())
182
183 monkeypatch.chdir(tmp_path)
184 assert git.find_git_project_root() is None
185
186
187@pytest.mark.parametrize("config_files_manager", defaults.CONFIG_FILES, indirect=True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected