Saturday, July 19, 2025
1 change · saas-18.2
Enhancements to existing features
Odoo’s automated test system can now add certain labels automatically when tests use browser tours or query-count checks. This helps teams run and organize the right test groups more reliably, reducing manual tagging mistakes without changing customer-facing behavior.
Original PR description
This commit add the possibility to automatically add test-tag on a test method at runtime. A generic method `get_method_additional_tags` is added on `BaseCase` test class. That method can be overridden to return a list of test-tags that will be added on the test methods. With this mechanism, the `HttpCase` class override this method to add a `is_tour` test-tag when the `start_tour` method is used in the test method. Also, the `start_tour` method will now emit a warning when the method is called without being tagged `is_tour`. That way, all the tours can now be started with the `is_tour` test-tag. Forward-Port-Of: odoo/odoo#218811 Forward-Port-Of: odoo/odoo#212315