-
-
Notifications
You must be signed in to change notification settings - Fork 703
[17.0] [MIG] stock_picking_tier_validation: migration to v17 #1962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 17.0
Are you sure you want to change the base?
[17.0] [MIG] stock_picking_tier_validation: migration to v17 #1962
Conversation
e12f370
to
fa1979b
Compare
fa1979b
to
b001590
Compare
ping @Christian-RB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code and functional review Ok!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR has the |
Standard migration from v14 to v17.
Key Points
The tests were failing due to certain methods in
base_tier_validation
using raw SQL queries. Since test transactions are not committed to the database, these raw queries were unable to retrieve the expected data, resulting in failed assertions.To resolve this, we refactored the tests by moving the scenario setup logic to the
setUpClass
method, which runs in the main transaction and ensures the data is "committed". The actual test methods now run in sub-transactions, allowing raw SQL queries to access the prepared data correctly.With this approach, the tests now pass as expected.
#1421
@BinhexTeam
Lots of credit to #1875