Method _get_tax_benefit_system() of class YamlItem in file openfisca_core/tools/test_runner.py will now clone the TBS when applying reforms to avoid running tests with previously reformed TBS.
Notes
In the case we want to run 2 tests or more with differents reforms and no extensions we were sharing the same baseline so we were executing following tests with the TBS set in previous tests.
Coverage: 77.655% (-0.005%) from 77.659% when pulling e473b5d8a922934e0f3bb9c6561892c6eaf2d462 on fix_test_runner_reform_clone into fad5f69a91435c767cb6bca73de6a7d1b666c082 on master.
Technical changes
_get_tax_benefit_system()
of classYamlItem
in fileopenfisca_core/tools/test_runner.py
will now clone the TBS when applying reforms to avoid running tests with previously reformed TBS.Notes
In the case we want to run 2 tests or more with differents
reforms
and noextensions
we were sharing the same baseline so we were executing following tests with the TBS set in previous tests.