Skip to content

Commit

Permalink
Change ValueError to sp.CalledProcessError
Browse files Browse the repository at this point in the history
  • Loading branch information
a3626a committed Jan 5, 2023
1 parent 3c4da85 commit 1d513d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_gitpuller.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_exception_branch_exists():
with Remote() as remote, Pusher(remote) as pusher:
pusher.push_file('README.md', '1')
with Puller(remote) as puller:
with pytest.raises(ValueError):
with pytest.raises(sp.CalledProcessError):
orig_url = puller.gp.git_url
puller.gp.git_url = ""
puller.gp.branch_exists("wrong")
Expand Down

0 comments on commit 1d513d4

Please sign in to comment.