(util: UtilFixture)
| 511 | |
| 512 | |
| 513 | def 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() |