mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
12243da5ce8d89d3cce6c59685e51afd12d7eb53
The standalone theme configurator test
(test_02_theme_default_generate_primary_templates) failed locally
because `configurator_apply()` attempts to perform real HTTP requests
through `_website_api_rpc()` and `_OLG_api_rpc()`.
Standalone tests run without network access by design, so these calls
must be mocked to ensure deterministic behavior.
This commit patches both RPC methods during the test execution to return
minimal, valid fake payloads.
IAP itself does not need to be tested here: its behavior and endpoints
are already covered indirectly by the configurator_flow web tour test in
test_website_modules, which exercises the full configurator flow
end-to-end with real network access.
runbot-231270
closes odoo/design-themes#1157
X-original-commit: 42b78a247d
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Description
No description provided
Languages
SCSS
49.6%
Python
25.4%
JavaScript
24.4%
Rich Text Format
0.5%