[IMP] core: reintroduce warning on watch

Was removed during the watch refactoring of #111422, present to avoid
people merging `watch=True`.

closes odoo/odoo#132727

X-original-commit: d2b33743e1b6faef82b24eb1e30b142e6b072290
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
This commit is contained in:
Xavier Morel
2023-08-23 07:40:34 +02:00
parent 63fb465956
commit 5dbdf7ca69
+3
View File
@@ -1745,6 +1745,9 @@ class HttpCase(TransactionCase):
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)