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

Function test_get_default_branch_error

tests/test_git.py:513–518  ·  view source on GitHub ↗
(util: UtilFixture)

Source from the content-addressed store, hash-verified

511
512
513def test_get_default_branch_error(util: UtilFixture):
514 util.mock_cmd(
515 err="fatal: ref refs/remotes/origin/HEAD is not a symbolic ref", return_code=1
516 )
517 with pytest.raises(GitCommandError):
518 git.get_default_branch()

Callers

nothing calls this directly

Calls 1

mock_cmdMethod · 0.80

Tested by

no test coverage detected