Skip to content

Commit

Permalink
fix test request handler mock
Browse files Browse the repository at this point in the history
  • Loading branch information
john-herholz-dt committed Aug 18, 2024
1 parent 87a8bf9 commit 15c3d47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webservice/tests/test_webservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ def test_web_service_get_url_combine(self):
@responses.activate
def test_web_service_get_url_combine_full_url(self):
endpoint = "api/test"
responses.add(responses.GET, self.url + endpoint, body="{}")
result = self.webservice.call("get", url="https://localhost.demo.odoo/api/test")
self.assertEqual(result, b"{}")
response = self.webservice.call("get", url=self.url + endpoint)
responses.add(response)
self.assertEqual(response, b"{}")
self.assertEqual(len(responses.calls), 1)
self.assertEqual(
responses.calls[0].request.headers["Content-Type"], "application/xml"
Expand Down

0 comments on commit 15c3d47

Please sign in to comment.