Skip to content

Commit

Permalink
assert reviewer does not get called on failed push
Browse files Browse the repository at this point in the history
\n(feature/161_handle_failure_if_branch_not_pushed)
  • Loading branch information
aramnhammer committed Jun 7, 2020
1 parent 631e1d1 commit 2b1cc04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ def test_review_push_fails(mocker, git_repo):
with zazu.util.cd(git_repo.working_tree_dir):
runner = click.testing.CliRunner()
result = runner.invoke(zazu.cli.cli, ['dev', 'review'])
assert not mocked_reviewer.called
assert result.exception
assert result.exit_code == 1

Expand All @@ -286,7 +287,6 @@ def test_review_dirty_working_tree(mocker, git_repo_with_local_origin, tmp_dir):
mocker.patch('zazu.util.prompt', side_effect=['title', 'summary'])
pathlib.Path(tmp_dir).joinpath('un-tracked_file.txt').touch()
with zazu.util.cd(git_repo_with_local_origin.working_tree_dir):
git_repo_with_local_origin
runner = click.testing.CliRunner()
result = runner.invoke(zazu.cli.cli, ['dev', 'review'])
assert result.exception
Expand Down

0 comments on commit 2b1cc04

Please sign in to comment.