Skip to content

Commit

Permalink
add unused mock_open to fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
g-marconet committed Nov 5, 2024
1 parent 2c7c3ec commit ca6bc15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/engine/tests/test_plugin_cicd_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def test_main_with_aws_codebuild_detector(self, mock_rglob):
),
)
@patch("pathlib.Path.rglob")
def test_main_with_electron_forge_detector(self, mock_rglob):
def test_main_with_electron_forge_detector(self, mock_rglob, _mock_open):
expected_package_json = "package.json"
expected_file = "forge.config.js"

Expand Down Expand Up @@ -121,7 +121,7 @@ def test_main_with_electron_forge_detector(self, mock_rglob):
read_data=json.dumps({"this_doesnt_have_config": True}),
)
@patch("pathlib.Path.rglob")
def test_main_with_electron_forge_detector_package_json_fail(self, mock_rglob):
def test_main_with_electron_forge_detector_package_json_fail(self, mock_rglob, _mock_open):
expected_package_json = "package.json"
expected_file = "forge.config.js"

Expand Down

0 comments on commit ca6bc15

Please sign in to comment.