Skip to content

Commit

Permalink
Removes parenthesized context managers
Browse files Browse the repository at this point in the history
  • Loading branch information
Natan16 authored and ecarrara committed Dec 7, 2023
1 parent ae854ef commit df7297c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_middlewares.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ def test_request_route_middleware():
def hello_world():
pass

with (mock.patch("django_query_prefixer.middlewares.set_prefix") as mock_set_prefix,
mock.patch("django_query_prefixer.middlewares.remove_prefix") as mock_remove_prefix):
with mock.patch("django_query_prefixer.middlewares.set_prefix") as mock_set_prefix, \
mock.patch("django_query_prefixer.middlewares.remove_prefix") as mock_remove_prefix:
middleware.process_view(request, hello_world, [], {})
assert middleware(request) == response

Expand Down

0 comments on commit df7297c

Please sign in to comment.