- Convertir 4 tests de decorador @patch a context manager 'with patch(...)' para evitar RuntimeError en LocalProxy de Werkzeug - Corregir patrón env(user=..., context=dict(...)) en Odoo 18 (sin .with_context()) - Agregar website real al mock para integración con helpers de pricing (_get_pricing_info) - Añadir pickup_date en fixture de existing_order para que _find_recent_draft_order localice correctamente - BUGFIX: Agregar (5,) a order_line para limpiar líneas previas al actualizar pedido existente Resultado: 0 failed, 0 errors de 4 tests en Docker para TestConfirmEskaera_Integration BREAKING: _create_or_update_sale_order ahora limpia las líneas anteriores con (5,) antes de asignar las nuevas cuando se actualiza un pedido existente. Comportamiento previo (duplicación de líneas) era un bug.
17 lines
816 B
Python
17 lines
816 B
Python
# Copyright 2025 Criptomart
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
|
|
|
|
from . import test_group_order # noqa: F401
|
|
from . import test_res_partner # noqa: F401
|
|
from . import test_product_extension # noqa: F401
|
|
from . import test_eskaera_shop # noqa: F401
|
|
from . import test_templates_rendering # noqa: F401
|
|
from . import test_record_rules # noqa: F401
|
|
from . import test_multi_company # noqa: F401
|
|
from . import test_save_order_endpoints # noqa: F401
|
|
from . import test_date_calculations # noqa: F401
|
|
from . import test_phase3_confirm_eskaera # noqa: F401
|
|
from . import test_pricing_with_pricelist # noqa: F401
|
|
from . import test_portal_sale_order_creation # noqa: F401
|
|
from . import test_cron_picking_batch # noqa: F401
|
|
from . import test_group_order_status_endpoint # noqa: F401
|