Monday, January 4, 2021
1 change · master
Resolved issues and error corrections
This change updates an internal web test so it accepts rounded float values that may appear as whole numbers, matching real server behavior. It reduces random test failures and helps keep development and release checks stable without changing user-facing functionality.
Original PR description
Commit [1] recently tweaked the way floats are generated in the SampleServer, as they are now rounded to 2 decimals. As a consequence it sometimes generates integers for float fields (e.g. 5 for 5.00). This is also what the real server does, so it's fine. However, a test was asserting that float fields were floats, so this test sometimes failed and thus needed to be adapted. [1] https://github.com/odoo/odoo/commit/81f2bc7 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr