mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
3b35cf4b54
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#1153
X-original-commit: 9c73a79802
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>