Skip to content

Commit

Permalink
responses>0.25.2 doesn't like body in HEAD mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Jul 9, 2024
1 parent ffc8d00 commit 8c8ade8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ckanext/resourceproxy/tests/test_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def initial_data(self, clean_db, with_request_context):

def mock_out_urls(self, *args, **kwargs):
responses.add(responses.GET, *args, **kwargs)
kwargs.pop("body", None)
responses.add(responses.HEAD, *args, **kwargs)

@responses.activate
Expand Down

0 comments on commit 8c8ade8

Please sign in to comment.