-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
fix: Add tests for Carrefour France import, + solve serving_size bug #6476
Conversation
ProductOpener::Test::compare_csv_file_to_expected_results($exported_csv_file, $test_dir . "/expected_test_results/import_convert_carrefour_france_export", $update_expected_results); | ||
|
||
|
||
done_testing(); |
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.
Really cool to have simple integrations tests like this.
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.
I think you forgot to add ImportConvertCarrefourFrance.pm @stephanegigandet !
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
Kudos, SonarCloud Quality Gate passed! |
There's a long standing issue #2973 that results in almost daily changes being made to some products imported by Carrefour France. The corresponding input files in fact did not change, but we were mapping multiple values (for different languages) to the same field: the values were concatenated, but in a not specified order. So the values changed.
This PR:
Note: in order to be able to create a test, most of the code from convert_carrefour_data.pl was moved to a new ImportConvertCarrefourFrance.pm module, but no attempt was made to improve that code.