Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
kossman committed Jan 27, 2025
1 parent c099de7 commit c13c6a9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/unit/test_apps_event_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ def test__read_correct_manifest_file__success(context):
manifest_payload_json = json.dumps(manifest_payload)

with mock.patch("os.path.exists", return_value=True):
with mock.patch("builtins.open", mock.mock_open(read_data=manifest_payload_json)):
with mock.patch(
"builtins.open", mock.mock_open(read_data=manifest_payload_json)
):
result = read_manifest()
assert result == manifest_payload

Expand All @@ -143,7 +145,9 @@ def test__read_invalid_json_manifest_file__error(context):
manifest_invalid_json = "{invalid: json}"

with mock.patch("os.path.exists", return_value=True):
with mock.patch("builtins.open", mock.mock_open(read_data=manifest_invalid_json)):
with mock.patch(
"builtins.open", mock.mock_open(read_data=manifest_invalid_json)
):
with pytest.raises(json.JSONDecodeError):
read_manifest()

Expand Down

0 comments on commit c13c6a9

Please sign in to comment.