Wednesday, October 30, 2019
4 changes · master
Enhancements to existing features
This update helps prevent browser-based tests from running too early during installation, which can cause false failures when required components are not yet loaded. It also cleans up older deprecated test helpers and fixes a related routing setup issue, making test results more reliable for teams maintaining Odoo.
Original PR description
When an HttpCase is used at install time, all modules are not yest installed. If the tour/test needs data from a not yet installed module, it will crash. While at it, remove deprecated at_install and post_install helpers and remove the deprecated phantom_js alias.
Several older internal helper functions are now marked as deprecated because modern Python tools already provide equivalent functionality. This reduces long-term maintenance work without changing normal user-facing behavior.
Original PR description
* walksymlinks is useless, os.walk got followlinks in 2.6 * tempdir is redundant with tempfile.TemporaryDirectory added in 3.2 * listdir(recursive=False) is just os.listdir. listdir(recursive=True) is untouched but only used in one place so seems fairly low-value versus just using os.walk there
Test tools now capture and display logged error objects more completely, not just plain text messages. This helps developers diagnose issues from newer interface components more reliably, reducing time spent investigating failed automated tests.
Original PR description
Before this commit, console.error were catched by browser_js in order to log them but only value was used on received object, which is correct only when the received object is text. With owl arrival, error object may be logged. This commit add the ability to manage logged object, fallbacking on a complete representation of object if object is not an error or description is empty.
This update adjusts automated browser-based tests so they run after installation, improving confidence that key workflows keep working correctly. It also removes older testing shortcuts, helping maintain a cleaner and more dependable test suite without changing user-facing features.
Original PR description
And while at it, remove deprecated usage of phantom_js alias, post_install and at_install helpers.