Skip to content

Commit

Permalink
Apply ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
lafrech committed Oct 17, 2024
1 parent 1f6862e commit e71a1ce
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ def test_load_json_called_by_parse_default(load_json, web_request):
"location", ["querystring", "form", "headers", "cookies", "files"]
)
def test_load_nondefault_called_by_parse_with_location(location, web_request):
with mock.patch(
f"webargs.core.Parser.load_{location}"
) as mock_loadfunc, mock.patch("webargs.core.Parser.load_json") as load_json:
with (
mock.patch(f"webargs.core.Parser.load_{location}") as mock_loadfunc,
mock.patch("webargs.core.Parser.load_json") as load_json,
):
mock_loadfunc.return_value = {}
load_json.return_value = {}
p = Parser()
Expand Down

0 comments on commit e71a1ce

Please sign in to comment.