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 d30861d commit 324674d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions webservice/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ def _request_handler(cls, s: Session, r: PreparedRequest, /, **kw):
if r.url.startswith("https://localhost.demo.odoo/") or r.url.startswith(
"https://custom.url"
):
r = Response()
r.status_code = 200
r._content = b"{}"
response = Response()
response.status_code = 200
response.request = r
response._content = b"{}"
return r
return super()._request_handler(s, r, **kw)

Expand Down

0 comments on commit 324674d

Please sign in to comment.