diff --git a/tests/test_resources/test_requests/test_requests_resource.py b/tests/test_resources/test_requests/test_requests_resource.py index 1b22623..6e537f9 100644 --- a/tests/test_resources/test_requests/test_requests_resource.py +++ b/tests/test_resources/test_requests/test_requests_resource.py @@ -58,7 +58,7 @@ def test_get_request(): @responses.activate def test_reset_request_journal(): responses.add( - responses.POST, "http://localhost/__admin/requests/reset", body="", status=200 + responses.DELETE, "http://localhost/__admin/requests", body="", status=200 ) r = Requests.reset_request_journal() diff --git a/wiremock/resources/requests/resource.py b/wiremock/resources/requests/resource.py index 8486d23..75a3b73 100644 --- a/wiremock/resources/requests/resource.py +++ b/wiremock/resources/requests/resource.py @@ -47,7 +47,7 @@ def get_request(cls, request_id, parameters={}): @classmethod def reset_request_journal(cls, parameters={}): ids = {"id": "reset"} - response = cls.REST_CLIENT.post(cls.get_base_uri(cls.endpoint_single(), **ids), headers=make_headers(), params=parameters) + response = cls.REST_CLIENT.delete(cls.get_base_uri(cls.endpoint()), headers=make_headers(), params=parameters) return cls.REST_CLIENT.handle_response(response) @classmethod