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

Function test_get_default_branch_success

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

Source from the content-addressed store, hash-verified

506
507
508def test_get_default_branch_success(util: UtilFixture):
509 util.mock_cmd(out="refs/remotes/origin/main\n")
510 assert git.get_default_branch() == "refs/remotes/origin/main"
511
512
513def test_get_default_branch_error(util: UtilFixture):

Callers

nothing calls this directly

Calls 1

mock_cmdMethod · 0.80

Tested by

no test coverage detected