Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ssahay87 committed Nov 26, 2023
1 parent c5a3122 commit 24457ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metecho/api/tests/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1478,8 +1478,8 @@ def test_ok__exception_from_template(self, mocker, github_mocks, user_factory):
sarge = mocker.patch(f"{PATCH_ROOT}.sarge", autospec=True)
sarge.capture_both.return_value.returncode = 0

with patch(f"{PATCH_ROOT}.Exception") as mock_Exception:
mock_Exception.side_effect = Exception(
with patch(f"{PATCH_ROOT}.Exception") as mock_exception:
mock_exception.side_effect = Exception(
"Create Repository using Template failed"
)

Expand Down

0 comments on commit 24457ac

Please sign in to comment.