Wednesday, October 13, 2021
1 change
Code cleanup and technical improvements
This change reorganizes internal test setup so shared preparation runs once per test class instead of before every individual test. It reduces repeated database work and should make installation test runs faster without changing business features.
Original PR description
In a lot of test class, we use `setUp` instead of `setUpClass`. `setUp` is execute for each test method and `setUpClass` will be execute only once by Class (and use savepoint + rollback). Then change setUp into setUpClass reduce the time to make all tests and avoid to repeat this error for the future. 1507670 SQL request -> 1446903 SQL request for at install tests https://github.com/odoo/odoo/pull/78082