Skip to content

[16.0][REF] shopfloor: use msg_store instead of copy pasting messages - #1252

Open
nicolas-delbovier-acsone wants to merge 5 commits into
OCA:16.0from
acsone:16.0-imp-shopfloor-use-msg-store-in-unit-tests
Open

[16.0][REF] shopfloor: use msg_store instead of copy pasting messages#1252
nicolas-delbovier-acsone wants to merge 5 commits into
OCA:16.0from
acsone:16.0-imp-shopfloor-use-msg-store-in-unit-tests

Conversation

@nicolas-delbovier-acsone

@nicolas-delbovier-acsone nicolas-delbovier-acsone commented Sep 2, 2026

Copy link
Copy Markdown

There has been this bad practice for a while in Shopfloor unit tests to copy paste the expected messages instead of using the msg_store to call the message functions.

This leads to a codebase that is less maintainable since changes in the wording now needs to be performed in multiple places (does not respect DRY principle).

Refactor inline message dictionaries across services (checkout, cluster
picking, location content transfer) and test cases to use dedicated
helper methods on `self.msg_store`.
@nicolas-delbovier-acsone
nicolas-delbovier-acsone force-pushed the 16.0-imp-shopfloor-use-msg-store-in-unit-tests branch from 6736376 to ba77402 Compare September 3, 2026 09:25
@OCA-git-bot OCA-git-bot added series:16.0 mod:shopfloor Module shopfloor mod:shopfloor_reception Module shopfloor_reception labels Sep 3, 2026
@nicolas-delbovier-acsone nicolas-delbovier-acsone changed the title [16.0][IMP] shopfloor: use msg_store in unit tests instead of copy pasting messages [16.0][REF] shopfloor: use msg_store instead of copy pasting messages Sep 3, 2026
@OCA-git-bot OCA-git-bot added mod:shopfloor_single_product_transfer Module shopfloor_single_product_transfer mod:shopfloor_workstation Module shopfloor_workstation labels Sep 3, 2026
@nicolas-delbovier-acsone
nicolas-delbovier-acsone marked this pull request as ready for review September 3, 2026 10:09
@nicolas-delbovier-acsone

Copy link
Copy Markdown
Author

@sebalix Here is the PR we were talking about here: #1250 (comment)

@sebalix sebalix left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! There were a lot of them... LG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:shopfloor_reception Module shopfloor_reception mod:shopfloor_single_product_transfer Module shopfloor_single_product_transfer mod:shopfloor_workstation Module shopfloor_workstation mod:shopfloor Module shopfloor series:16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants