From e71a1cea6130db1aed1e8aac1b4cd13525d80052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lafr=C3=A9choux?= Date: Thu, 17 Oct 2024 18:56:50 +0200 Subject: [PATCH] Apply ruff --- tests/test_core.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_core.py b/tests/test_core.py index 01d35eba4..4b703bb0c 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -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()