Skip to content

Commit

Permalink
[IMP] core: reintroduce warning on watch
Browse files Browse the repository at this point in the history
Was removed during the watch refactoring of odoo#111422, present to avoid
people merging `watch=True`.

closes odoo#132727

X-original-commit: d2b3374
Signed-off-by: Xavier Morel (xmo) <[email protected]>
  • Loading branch information
xmo-odoo committed Aug 23, 2023
1 parent 63fb465 commit 5dbdf7c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions odoo/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1745,6 +1745,9 @@ def browser_js(self, url_path, code, ready='', login=None, timeout=60, cookies=N
if any(f.filename.endswith('/coverage/execfile.py') for f in inspect.stack() if f.filename):
timeout = timeout * 1.5

if watch:
_logger.warning('watch mode is only suitable for local testing')

browser = ChromeBrowser(type(self), headless=not watch)
try:
self.authenticate(login, login, browser=browser)
Expand Down

0 comments on commit 5dbdf7c

Please sign in to comment.