Files
Serge Bayet (seba) 9c73a79802 [FIX] test_themes: mock RPC calls in standalone configurator tests
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#1152

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-09-26 15:56:25 +00:00
..