Skip to content

Commit

Permalink
pre-commit ..
Browse files Browse the repository at this point in the history
  • Loading branch information
john-herholz-dt committed May 14, 2024
1 parent 3627c90 commit 532fb17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions webservice/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from contextlib import contextmanager
from unittest import mock
from requests import Session, PreparedRequest, Response

from requests import PreparedRequest, Response, Session

from odoo.tests.common import tagged

Expand Down Expand Up @@ -35,7 +36,7 @@ def setUpClass(cls):

@classmethod
def _request_handler(cls, s: Session, r: PreparedRequest, /, **kw):
if r.url.startswith('http://localhost.demo.odoo/'):
if r.url.startswith("http://localhost.demo.odoo/"):
r = Response()
r.status_code = 200
return r
Expand Down

0 comments on commit 532fb17

Please sign in to comment.