579ee6d9792050955fa80346fd57ad294efcdd62
The bus service communicates with the websocket worker in order to deliver messages coming from the bus. Most of the time, it is using a `SharedWorker` but when this kind of worker is not available, it fallbacks on a `Worker`. During tests, the `SharedWorker` is mocked to prevent opening websockets on the server. However, the `Worker` is not. Since [1], opening websockets during tests is forbidden thus, any test relying on `Worker` and expecting a connection to be established would fail. This PR solves this issue by mocking the `Worker` constructor as well. [1]: https://github.com/odoo/odoo/pull/141519 closes odoo/odoo#143988 X-original-commit: 1c67542decb1b6ad38fd15532cb6ac82417ca6dc Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Signed-off-by: Matthieu Stockbauer (tsm) <tsm@odoo.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%