try fix for test_esnure_latest_bundle's
This commit is contained in:
parent
dc5f2e4eab
commit
6f5ad6e663
1 changed files with 4 additions and 0 deletions
|
|
@ -932,6 +932,8 @@ def test_ensure_latest_bundle_bad_bundle_data():
|
|||
"circup.command_utils.json.load",
|
||||
side_effect=json.decoder.JSONDecodeError("BANG!", "doc", 1),
|
||||
), mock.patch(
|
||||
"circup.os.path.isfile", return_value=True
|
||||
),mock.patch(
|
||||
"circup.command_utils.json.dump"
|
||||
), mock.patch(
|
||||
"circup.command_utils.logger"
|
||||
|
|
@ -999,6 +1001,8 @@ def test_ensure_latest_bundle_no_update():
|
|||
), mock.patch("circup.command_utils.open"), mock.patch(
|
||||
"circup.command_utils.get_bundle"
|
||||
) as mock_gb, mock.patch(
|
||||
"circup.os.path.isfile", return_value=True
|
||||
), mock.patch(
|
||||
"circup.shared.json"
|
||||
) as mock_json, mock.patch(
|
||||
"circup.command_utils.logger"
|
||||
|
|
|
|||
Loading…
Reference in a new issue