(fp)
| 34 | |
| 35 | |
| 36 | def test_fetch_failure_raises_value_error(fp): |
| 37 | fp.register(["git", "--version"], stdout="git version 2.30.0\n") |
| 38 | fp.register(["git", "rev-parse", "--is-inside-work-tree"], stdout="true\n") |
| 39 | fp.register(["git", "fetch"], returncode=128, stderr="remote unavailable\n") |
| 40 | |
| 41 | with pytest.raises( |
| 42 | ValueError, |
| 43 | match=r"Git fetch failed with exit code 128 for command \['git', 'fetch'\]: remote unavailable", |
| 44 | ): |
| 45 | Repository(path=".") |
| 46 | |
| 47 | |
| 48 | def test_status(fp, repository): |
nothing calls this directly
no test coverage detected