diff --git a/lib/ProductOpener/Ecoscore.pm b/lib/ProductOpener/Ecoscore.pm index be3ea8a507b5b..18be52ea05f82 100644 --- a/lib/ProductOpener/Ecoscore.pm +++ b/lib/ProductOpener/Ecoscore.pm @@ -1113,6 +1113,12 @@ my @production_system_labels = ( ["en:responsible-aquaculture-asc", 10], ); +foreach my $label_ref (@production_system_labels) { + + # Canonicalize the label ids in case the normalized id changed + $label_ref->[0] = canonicalize_taxonomy_tag("en", "labels", $label_ref->[0]); +} + sub compute_ecoscore_production_system_adjustment ($product_ref) { $product_ref->{ecoscore_data}{adjustments}{production_system} = {value => 0, labels => []}; @@ -1296,6 +1302,28 @@ sub aggregate_origins_of_ingredients ($default_origins_ref, $aggregated_origins_ return; } +=head2 get_country_origin_from_origins ( $origins_ref ) + +Given a list of origins, return the country for the first origin that is a country or a child of a country. + +=cut + +sub get_country_origin_from_origins ($origins_ref) { + + foreach my $origin_id (@$origins_ref) { + + # If the origin is a child of a country, use the country + my $country_code = get_inherited_property("origins", $origin_id, "country_code_2:en"); + + if ( (defined $country_code) + and (defined $ecoscore_data{origins}{canonicalize_taxonomy_tag("en", "origins", $country_code)})) + { + return canonicalize_taxonomy_tag("en", "origins", $country_code); + } + } + return; +} + =head2 compute_ecoscore_origins_of_ingredients_adjustment ( $product_ref ) Computes adjustments(bonus or malus for transportation + EPI / Environmental Performance Index) @@ -1336,6 +1364,22 @@ sub compute_ecoscore_origins_of_ingredients_adjustment ($product_ref) { } } + # Check if we have categories with an origins:en property (e.g. French wines -> origins:en:france) + my @origins_from_categories = (); + + if (defined $product_ref->{categories_tags}) { + foreach my $category (@{$product_ref->{categories_tags}}) { + my $origin_id = get_property("categories", $category, "origins:en"); + if (defined $origin_id) { + push @origins_from_categories, split(',', $origin_id); + } + } + } + my $origin_from_categories = get_country_origin_from_origins(\@origins_from_categories); + if (defined $origin_from_categories) { + @origins_from_categories = ($origin_from_categories); + } + # If we don't have ingredients, check if we have an origin for a specific ingredient # (e.g. we have the label "French eggs" even though we don't have ingredients) if ( (scalar @origins_from_origins_field == 0) @@ -1347,28 +1391,41 @@ sub compute_ecoscore_origins_of_ingredients_adjustment ($product_ref) { } } + # If we have origins from the origins field and from the categories, we will use the origins from the origins field + my $default_origins_ref = \@origins_from_categories; + if (scalar @origins_from_origins_field == 0) { @origins_from_origins_field = ("en:unknown"); } + else { + $default_origins_ref = \@origins_from_origins_field; + } - $log->debug("compute_ecoscore_origins_of_ingredients_adjustment - origins field", - {origins_tags => $product_ref->{origins_tags}, origins_from_origins_field => \@origins_from_origins_field}) - if $log->is_debug(); + if (scalar @origins_from_categories == 0) { + @origins_from_categories = ("en:unknown"); + } + + $log->debug( + "compute_ecoscore_origins_of_ingredients_adjustment - origins field", + { + origins_tags => $product_ref->{origins_tags}, + origins_from_origins_field => \@origins_from_origins_field, + origins_from_categories => \@origins_from_categories + } + ) if $log->is_debug(); # Sum the % values/estimates of all ingredients by origins my %aggregated_origins = (); if ((defined $product_ref->{ingredients}) and (scalar @{$product_ref->{ingredients}} > 0)) { - aggregate_origins_of_ingredients(\@origins_from_origins_field, - \%aggregated_origins, $product_ref->{ingredients}); + aggregate_origins_of_ingredients($default_origins_ref, \%aggregated_origins, $product_ref->{ingredients}); } else { # If we don't have ingredients listed, apply the origins from the origins field # using a dummy ingredient - aggregate_origins_of_ingredients(\@origins_from_origins_field, - \%aggregated_origins, [{percent_estimate => 100}]); + aggregate_origins_of_ingredients($default_origins_ref, \%aggregated_origins, [{percent_estimate => 100}]); } # Compute the transportation and EPI values and a sorted list of aggregated origins @@ -1412,6 +1469,7 @@ sub compute_ecoscore_origins_of_ingredients_adjustment ($product_ref) { $product_ref->{ecoscore_data}{adjustments}{origins_of_ingredients} = { origins_from_origins_field => \@origins_from_origins_field, + origins_from_categories => \@origins_from_categories, aggregated_origins => \@aggregated_origins, epi_score => 0 + $epi_score, epi_value => round($epi_value), diff --git a/taxonomies/categories.txt b/taxonomies/categories.txt index 68e08590e90ae..d4c8c75fe9630 100644 --- a/taxonomies/categories.txt +++ b/taxonomies/categories.txt @@ -2154,7 +2154,7 @@ bg:Френска бира de:Französische Biere es:Cervezas francesas, Cervezas de Francia fi:ranskalaiset oluet -fr:Bières françaises, Bières de France +fr:Bières françaises, Bières de France, bière française, bière de France hu:Francia sörök it:Birre francesi, birre dalla Francia lt:Prancūziškas alus @@ -3791,6 +3791,7 @@ agribalyse_food_code:en:1023 ciqual_food_code:en:1023 ciqual_food_name:en:Spirit made from wine, armagnac or cognac type ciqual_food_name:fr:Eau de vie de vin, type armagnac, cognac +origins:en: en:France "en", + categories_tags => ["en:calvados"], + }, + ], + [ + 'calvados-ingredients-no-origins', + { + lc => "en", + ingredients_text => "wine", + categories_tags => ["en:calvados"], + }, + ], + ); my $json = JSON->new->allow_nonref->canonical; diff --git a/tests/unit/expected_test_results/attributes/en-attributes.json b/tests/unit/expected_test_results/attributes/en-attributes.json index 63462d7ef0f44..265498fdd7165 100644 --- a/tests/unit/expected_test_results/attributes/en-attributes.json +++ b/tests/unit/expected_test_results/attributes/en-attributes.json @@ -422,6 +422,9 @@ ], "epi_score" : 52.9090909090909, "epi_value" : 0, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/attributes/en-ecoscore-score-at-20-threshold.json b/tests/unit/expected_test_results/attributes/en-ecoscore-score-at-20-threshold.json index 050e7d6e603e4..b95a740277ec0 100644 --- a/tests/unit/expected_test_results/attributes/en-ecoscore-score-at-20-threshold.json +++ b/tests/unit/expected_test_results/attributes/en-ecoscore-score-at-20-threshold.json @@ -393,6 +393,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/attributes/en-maybe-vegan.json b/tests/unit/expected_test_results/attributes/en-maybe-vegan.json index 83ae545f0a119..594850a732efe 100644 --- a/tests/unit/expected_test_results/attributes/en-maybe-vegan.json +++ b/tests/unit/expected_test_results/attributes/en-maybe-vegan.json @@ -389,6 +389,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/attributes/en-no-ingredients.json b/tests/unit/expected_test_results/attributes/en-no-ingredients.json index 1a6ac972669bd..dca72ed028fc7 100644 --- a/tests/unit/expected_test_results/attributes/en-no-ingredients.json +++ b/tests/unit/expected_test_results/attributes/en-no-ingredients.json @@ -389,6 +389,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/attributes/en-nova-groups-markers.json b/tests/unit/expected_test_results/attributes/en-nova-groups-markers.json index 308130a766589..2155920d662bd 100644 --- a/tests/unit/expected_test_results/attributes/en-nova-groups-markers.json +++ b/tests/unit/expected_test_results/attributes/en-nova-groups-markers.json @@ -405,6 +405,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/attributes/en-nutriscore.json b/tests/unit/expected_test_results/attributes/en-nutriscore.json index a93fde76279d9..3b9bb456124fc 100644 --- a/tests/unit/expected_test_results/attributes/en-nutriscore.json +++ b/tests/unit/expected_test_results/attributes/en-nutriscore.json @@ -401,6 +401,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/attributes/en-unknown-ingredients.json b/tests/unit/expected_test_results/attributes/en-unknown-ingredients.json index 366fe5f9f88d4..86d22263b7b3c 100644 --- a/tests/unit/expected_test_results/attributes/en-unknown-ingredients.json +++ b/tests/unit/expected_test_results/attributes/en-unknown-ingredients.json @@ -398,6 +398,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/attributes/fr-palm-kernel-fat.json b/tests/unit/expected_test_results/attributes/fr-palm-kernel-fat.json index 7f1043b98cff2..ffb105e5f6351 100644 --- a/tests/unit/expected_test_results/attributes/fr-palm-kernel-fat.json +++ b/tests/unit/expected_test_results/attributes/fr-palm-kernel-fat.json @@ -387,6 +387,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/attributes/fr-palm-oil-free.json b/tests/unit/expected_test_results/attributes/fr-palm-oil-free.json index d64e60136460a..440b57756e1fd 100644 --- a/tests/unit/expected_test_results/attributes/fr-palm-oil-free.json +++ b/tests/unit/expected_test_results/attributes/fr-palm-oil-free.json @@ -385,6 +385,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/attributes/fr-palm-oil.json b/tests/unit/expected_test_results/attributes/fr-palm-oil.json index 6058610c9d7a8..cfab0e822d76e 100644 --- a/tests/unit/expected_test_results/attributes/fr-palm-oil.json +++ b/tests/unit/expected_test_results/attributes/fr-palm-oil.json @@ -385,6 +385,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/attributes/fr-vegetable-oils.json b/tests/unit/expected_test_results/attributes/fr-vegetable-oils.json index 6fb44adeb8b5a..d173c6e153b92 100644 --- a/tests/unit/expected_test_results/attributes/fr-vegetable-oils.json +++ b/tests/unit/expected_test_results/attributes/fr-vegetable-oils.json @@ -385,6 +385,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/agribalyse-updated-category.json b/tests/unit/expected_test_results/ecoscore/agribalyse-updated-category.json index d219489687cae..9c390c61e32c4 100644 --- a/tests/unit/expected_test_results/ecoscore/agribalyse-updated-category.json +++ b/tests/unit/expected_test_results/ecoscore/agribalyse-updated-category.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/calvados-ingredients-no-origins.json b/tests/unit/expected_test_results/ecoscore/calvados-ingredients-no-origins.json new file mode 100644 index 0000000000000..12c5ae7cb3e59 --- /dev/null +++ b/tests/unit/expected_test_results/ecoscore/calvados-ingredients-no-origins.json @@ -0,0 +1,313 @@ +{ + "categories_tags" : [ + "en:calvados" + ], + "ecoscore_data" : { + "adjustments" : { + "origins_of_ingredients" : { + "aggregated_origins" : [ + { + "origin" : "en:france", + "percent" : 100 + } + ], + "epi_score" : 93, + "epi_value" : 4, + "origins_from_categories" : [ + "en:france" + ], + "origins_from_origins_field" : [ + "en:unknown" + ], + "transportation_scores" : { + "ad" : 57, + "al" : 0, + "at" : 38, + "ax" : 67, + "ba" : 14, + "be" : 85, + "bg" : 21, + "ch" : 69, + "cy" : 40, + "cz" : 48, + "de" : 61, + "dk" : 39, + "dz" : 45, + "ee" : 71, + "eg" : 35, + "es" : 37, + "fi" : 69, + "fo" : 62, + "fr" : 100, + "gg" : 78, + "gi" : 4, + "gr" : 49, + "hr" : 30, + "hu" : 26, + "ie" : 47, + "il" : 34, + "im" : 50, + "is" : 53, + "it" : 47, + "je" : 76, + "lb" : 39, + "li" : 64, + "lt" : 63, + "lu" : 82, + "lv" : 71, + "ly" : 56, + "ma" : 60, + "mc" : 52, + "md" : 29, + "me" : 37, + "mk" : 29, + "mt" : 57, + "nl" : 77, + "no" : 20, + "pl" : 25, + "ps" : 42, + "pt" : 13, + "ro" : 31, + "rs" : 7, + "se" : 15, + "si" : 38, + "sj" : 53, + "sk" : 24, + "sm" : 40, + "sy" : 26, + "tn" : 9, + "tr" : 7, + "ua" : 40, + "uk" : 68, + "us" : 0, + "va" : 29, + "world" : 0, + "xk" : 28 + }, + "transportation_values" : { + "ad" : 9, + "al" : 0, + "at" : 6, + "ax" : 10, + "ba" : 2, + "be" : 13, + "bg" : 3, + "ch" : 10, + "cy" : 6, + "cz" : 7, + "de" : 9, + "dk" : 6, + "dz" : 7, + "ee" : 11, + "eg" : 5, + "es" : 6, + "fi" : 10, + "fo" : 9, + "fr" : 15, + "gg" : 12, + "gi" : 1, + "gr" : 7, + "hr" : 5, + "hu" : 4, + "ie" : 7, + "il" : 5, + "im" : 8, + "is" : 8, + "it" : 7, + "je" : 11, + "lb" : 6, + "li" : 10, + "lt" : 9, + "lu" : 12, + "lv" : 11, + "ly" : 8, + "ma" : 9, + "mc" : 8, + "md" : 4, + "me" : 6, + "mk" : 4, + "mt" : 9, + "nl" : 12, + "no" : 3, + "pl" : 4, + "ps" : 6, + "pt" : 2, + "ro" : 5, + "rs" : 1, + "se" : 2, + "si" : 6, + "sj" : 8, + "sk" : 4, + "sm" : 6, + "sy" : 4, + "tn" : 1, + "tr" : 1, + "ua" : 6, + "uk" : 10, + "us" : 0, + "va" : 4, + "world" : 0, + "xk" : 4 + }, + "values" : { + "ad" : 13, + "al" : 4, + "at" : 10, + "ax" : 14, + "ba" : 6, + "be" : 17, + "bg" : 7, + "ch" : 14, + "cy" : 10, + "cz" : 11, + "de" : 13, + "dk" : 10, + "dz" : 11, + "ee" : 15, + "eg" : 9, + "es" : 10, + "fi" : 14, + "fo" : 13, + "fr" : 19, + "gg" : 16, + "gi" : 5, + "gr" : 11, + "hr" : 9, + "hu" : 8, + "ie" : 11, + "il" : 9, + "im" : 12, + "is" : 12, + "it" : 11, + "je" : 15, + "lb" : 10, + "li" : 14, + "lt" : 13, + "lu" : 16, + "lv" : 15, + "ly" : 12, + "ma" : 13, + "mc" : 12, + "md" : 8, + "me" : 10, + "mk" : 8, + "mt" : 13, + "nl" : 16, + "no" : 7, + "pl" : 8, + "ps" : 10, + "pt" : 6, + "ro" : 9, + "rs" : 5, + "se" : 6, + "si" : 10, + "sj" : 12, + "sk" : 8, + "sm" : 10, + "sy" : 8, + "tn" : 5, + "tr" : 5, + "ua" : 10, + "uk" : 14, + "us" : 4, + "va" : 8, + "world" : 4, + "xk" : 8 + } + }, + "packaging" : { + "non_recyclable_and_non_biodegradable_materials" : 1, + "value" : -15, + "warning" : "packaging_data_missing" + }, + "production_system" : { + "labels" : [], + "value" : 0, + "warning" : "no_label" + }, + "threatened_species" : {} + }, + "agribalyse" : { + "warning" : "missing_agribalyse_match" + }, + "missing" : { + "agb_category" : 1, + "labels" : 1, + "packagings" : 1 + }, + "missing_agribalyse_match_warning" : 1, + "missing_key_data" : 1, + "status" : "unknown" + }, + "ecoscore_grade" : "unknown", + "ecoscore_tags" : [ + "unknown" + ], + "ingredients" : [ + { + "ciqual_food_code" : "1014", + "id" : "en:wine", + "percent_estimate" : 100, + "percent_max" : 100, + "percent_min" : 100, + "text" : "wine", + "vegan" : "maybe", + "vegetarian" : "yes" + } + ], + "ingredients_analysis" : { + "en:maybe-vegan" : [ + "en:wine" + ] + }, + "ingredients_analysis_tags" : [ + "en:palm-oil-free", + "en:maybe-vegan", + "en:vegetarian" + ], + "ingredients_hierarchy" : [ + "en:wine", + "en:alcohol" + ], + "ingredients_n" : 1, + "ingredients_n_tags" : [ + "1", + "1-10" + ], + "ingredients_original_tags" : [ + "en:wine" + ], + "ingredients_percent_analysis" : 1, + "ingredients_tags" : [ + "en:wine", + "en:alcohol" + ], + "ingredients_text" : "wine", + "ingredients_with_specified_percent_n" : 0, + "ingredients_with_specified_percent_sum" : 0, + "ingredients_with_unspecified_percent_n" : 1, + "ingredients_with_unspecified_percent_sum" : 100, + "ingredients_without_ciqual_codes" : [], + "ingredients_without_ciqual_codes_n" : 0, + "known_ingredients_n" : 2, + "lc" : "en", + "misc_tags" : [ + "en:packagings-number-of-components-0", + "en:packagings-not-complete", + "en:packagings-empty", + "en:ecoscore-extended-data-not-computed", + "en:ecoscore-not-computed" + ], + "nutriments" : { + "fruits-vegetables-legumes-estimate-from-ingredients_100g" : 0, + "fruits-vegetables-legumes-estimate-from-ingredients_serving" : 0, + "fruits-vegetables-nuts-estimate-from-ingredients_100g" : 0, + "fruits-vegetables-nuts-estimate-from-ingredients_serving" : 0 + }, + "packaging_materials_tags" : [], + "packaging_recycling_tags" : [], + "packaging_shapes_tags" : [], + "packagings" : [], + "packagings_materials" : {}, + "unknown_ingredients_n" : 0 +} diff --git a/tests/unit/expected_test_results/ecoscore/calvados-no-ingredients-no-origins.json b/tests/unit/expected_test_results/ecoscore/calvados-no-ingredients-no-origins.json new file mode 100644 index 0000000000000..ec0adcf7994ad --- /dev/null +++ b/tests/unit/expected_test_results/ecoscore/calvados-no-ingredients-no-origins.json @@ -0,0 +1,262 @@ +{ + "categories_tags" : [ + "en:calvados" + ], + "ecoscore_data" : { + "adjustments" : { + "origins_of_ingredients" : { + "aggregated_origins" : [ + { + "origin" : "en:france", + "percent" : 100 + } + ], + "epi_score" : 93, + "epi_value" : 4, + "origins_from_categories" : [ + "en:france" + ], + "origins_from_origins_field" : [ + "en:unknown" + ], + "transportation_scores" : { + "ad" : 57, + "al" : 0, + "at" : 38, + "ax" : 67, + "ba" : 14, + "be" : 85, + "bg" : 21, + "ch" : 69, + "cy" : 40, + "cz" : 48, + "de" : 61, + "dk" : 39, + "dz" : 45, + "ee" : 71, + "eg" : 35, + "es" : 37, + "fi" : 69, + "fo" : 62, + "fr" : 100, + "gg" : 78, + "gi" : 4, + "gr" : 49, + "hr" : 30, + "hu" : 26, + "ie" : 47, + "il" : 34, + "im" : 50, + "is" : 53, + "it" : 47, + "je" : 76, + "lb" : 39, + "li" : 64, + "lt" : 63, + "lu" : 82, + "lv" : 71, + "ly" : 56, + "ma" : 60, + "mc" : 52, + "md" : 29, + "me" : 37, + "mk" : 29, + "mt" : 57, + "nl" : 77, + "no" : 20, + "pl" : 25, + "ps" : 42, + "pt" : 13, + "ro" : 31, + "rs" : 7, + "se" : 15, + "si" : 38, + "sj" : 53, + "sk" : 24, + "sm" : 40, + "sy" : 26, + "tn" : 9, + "tr" : 7, + "ua" : 40, + "uk" : 68, + "us" : 0, + "va" : 29, + "world" : 0, + "xk" : 28 + }, + "transportation_values" : { + "ad" : 9, + "al" : 0, + "at" : 6, + "ax" : 10, + "ba" : 2, + "be" : 13, + "bg" : 3, + "ch" : 10, + "cy" : 6, + "cz" : 7, + "de" : 9, + "dk" : 6, + "dz" : 7, + "ee" : 11, + "eg" : 5, + "es" : 6, + "fi" : 10, + "fo" : 9, + "fr" : 15, + "gg" : 12, + "gi" : 1, + "gr" : 7, + "hr" : 5, + "hu" : 4, + "ie" : 7, + "il" : 5, + "im" : 8, + "is" : 8, + "it" : 7, + "je" : 11, + "lb" : 6, + "li" : 10, + "lt" : 9, + "lu" : 12, + "lv" : 11, + "ly" : 8, + "ma" : 9, + "mc" : 8, + "md" : 4, + "me" : 6, + "mk" : 4, + "mt" : 9, + "nl" : 12, + "no" : 3, + "pl" : 4, + "ps" : 6, + "pt" : 2, + "ro" : 5, + "rs" : 1, + "se" : 2, + "si" : 6, + "sj" : 8, + "sk" : 4, + "sm" : 6, + "sy" : 4, + "tn" : 1, + "tr" : 1, + "ua" : 6, + "uk" : 10, + "us" : 0, + "va" : 4, + "world" : 0, + "xk" : 4 + }, + "values" : { + "ad" : 13, + "al" : 4, + "at" : 10, + "ax" : 14, + "ba" : 6, + "be" : 17, + "bg" : 7, + "ch" : 14, + "cy" : 10, + "cz" : 11, + "de" : 13, + "dk" : 10, + "dz" : 11, + "ee" : 15, + "eg" : 9, + "es" : 10, + "fi" : 14, + "fo" : 13, + "fr" : 19, + "gg" : 16, + "gi" : 5, + "gr" : 11, + "hr" : 9, + "hu" : 8, + "ie" : 11, + "il" : 9, + "im" : 12, + "is" : 12, + "it" : 11, + "je" : 15, + "lb" : 10, + "li" : 14, + "lt" : 13, + "lu" : 16, + "lv" : 15, + "ly" : 12, + "ma" : 13, + "mc" : 12, + "md" : 8, + "me" : 10, + "mk" : 8, + "mt" : 13, + "nl" : 16, + "no" : 7, + "pl" : 8, + "ps" : 10, + "pt" : 6, + "ro" : 9, + "rs" : 5, + "se" : 6, + "si" : 10, + "sj" : 12, + "sk" : 8, + "sm" : 10, + "sy" : 8, + "tn" : 5, + "tr" : 5, + "ua" : 10, + "uk" : 14, + "us" : 4, + "va" : 8, + "world" : 4, + "xk" : 8 + } + }, + "packaging" : { + "non_recyclable_and_non_biodegradable_materials" : 1, + "value" : -15, + "warning" : "packaging_data_missing" + }, + "production_system" : { + "labels" : [], + "value" : 0, + "warning" : "no_label" + }, + "threatened_species" : { + "warning" : "ingredients_missing" + } + }, + "agribalyse" : { + "warning" : "missing_agribalyse_match" + }, + "missing" : { + "agb_category" : 1, + "ingredients" : 1, + "labels" : 1, + "packagings" : 1 + }, + "missing_agribalyse_match_warning" : 1, + "missing_key_data" : 1, + "status" : "unknown" + }, + "ecoscore_grade" : "unknown", + "ecoscore_tags" : [ + "unknown" + ], + "lc" : "en", + "misc_tags" : [ + "en:packagings-number-of-components-0", + "en:packagings-not-complete", + "en:packagings-empty", + "en:ecoscore-extended-data-not-computed", + "en:ecoscore-not-computed" + ], + "packaging_materials_tags" : [], + "packaging_recycling_tags" : [], + "packaging_shapes_tags" : [], + "packagings" : [], + "packagings_materials" : {} +} diff --git a/tests/unit/expected_test_results/ecoscore/carrots-plastic.json b/tests/unit/expected_test_results/ecoscore/carrots-plastic.json index f456deb429d23..93f87438ded75 100644 --- a/tests/unit/expected_test_results/ecoscore/carrots-plastic.json +++ b/tests/unit/expected_test_results/ecoscore/carrots-plastic.json @@ -14,6 +14,9 @@ ], "epi_score" : 93, "epi_value" : 4, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/carrots.json b/tests/unit/expected_test_results/ecoscore/carrots.json index 49e888324c9b3..d899c015b0a12 100644 --- a/tests/unit/expected_test_results/ecoscore/carrots.json +++ b/tests/unit/expected_test_results/ecoscore/carrots.json @@ -13,6 +13,9 @@ ], "epi_score" : 93, "epi_value" : 4, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/category-without-ecoscore-sodas.json b/tests/unit/expected_test_results/ecoscore/category-without-ecoscore-sodas.json index c870596a945e1..3d727d4dacd14 100644 --- a/tests/unit/expected_test_results/ecoscore/category-without-ecoscore-sodas.json +++ b/tests/unit/expected_test_results/ecoscore/category-without-ecoscore-sodas.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/empty-product.json b/tests/unit/expected_test_results/ecoscore/empty-product.json index eaa55ab7a0c9f..ac095fb55c114 100644 --- a/tests/unit/expected_test_results/ecoscore/empty-product.json +++ b/tests/unit/expected_test_results/ecoscore/empty-product.json @@ -10,6 +10,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/energy-drink.json b/tests/unit/expected_test_results/ecoscore/energy-drink.json index 4ea6799f9bdd0..49dc2767d8b7b 100644 --- a/tests/unit/expected_test_results/ecoscore/energy-drink.json +++ b/tests/unit/expected_test_results/ecoscore/energy-drink.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/exempted-category-sodas.json b/tests/unit/expected_test_results/ecoscore/exempted-category-sodas.json index 83c02d8d9ae64..a1a4e1ae10db0 100644 --- a/tests/unit/expected_test_results/ecoscore/exempted-category-sodas.json +++ b/tests/unit/expected_test_results/ecoscore/exempted-category-sodas.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/foie-gras.json b/tests/unit/expected_test_results/ecoscore/foie-gras.json index 52d8c6b6f8a29..e564a126cf3ba 100644 --- a/tests/unit/expected_test_results/ecoscore/foie-gras.json +++ b/tests/unit/expected_test_results/ecoscore/foie-gras.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/fr-oeufs-de-france.json b/tests/unit/expected_test_results/ecoscore/fr-oeufs-de-france.json index 12ed33c754577..38a6f8fe3c620 100644 --- a/tests/unit/expected_test_results/ecoscore/fr-oeufs-de-france.json +++ b/tests/unit/expected_test_results/ecoscore/fr-oeufs-de-france.json @@ -20,6 +20,9 @@ ], "epi_score" : 93, "epi_value" : 4, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:france" ], diff --git a/tests/unit/expected_test_results/ecoscore/fr-verseur-en-plastique.json b/tests/unit/expected_test_results/ecoscore/fr-verseur-en-plastique.json index 0e08c752a57d9..fec1862816b45 100644 --- a/tests/unit/expected_test_results/ecoscore/fr-verseur-en-plastique.json +++ b/tests/unit/expected_test_results/ecoscore/fr-verseur-en-plastique.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/fr-viande-porcine-francaise.json b/tests/unit/expected_test_results/ecoscore/fr-viande-porcine-francaise.json index db4ab33656160..3ac914528a355 100644 --- a/tests/unit/expected_test_results/ecoscore/fr-viande-porcine-francaise.json +++ b/tests/unit/expected_test_results/ecoscore/fr-viande-porcine-francaise.json @@ -24,6 +24,9 @@ ], "epi_score" : 46.5, "epi_value" : -0, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/fresh-vegetable.json b/tests/unit/expected_test_results/ecoscore/fresh-vegetable.json index 705d16f9c6c79..9751cf18435e3 100644 --- a/tests/unit/expected_test_results/ecoscore/fresh-vegetable.json +++ b/tests/unit/expected_test_results/ecoscore/fresh-vegetable.json @@ -15,6 +15,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/frozen-vegetable.json b/tests/unit/expected_test_results/ecoscore/frozen-vegetable.json index d84a31989b408..fe6bd72dfbbe4 100644 --- a/tests/unit/expected_test_results/ecoscore/frozen-vegetable.json +++ b/tests/unit/expected_test_results/ecoscore/frozen-vegetable.json @@ -15,6 +15,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/grade-a-with-non-recyclable-label.json b/tests/unit/expected_test_results/ecoscore/grade-a-with-non-recyclable-label.json index 508740869ec2c..5f5f1673d253a 100644 --- a/tests/unit/expected_test_results/ecoscore/grade-a-with-non-recyclable-label.json +++ b/tests/unit/expected_test_results/ecoscore/grade-a-with-non-recyclable-label.json @@ -13,6 +13,9 @@ ], "epi_score" : 93, "epi_value" : 4, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:france" ], diff --git a/tests/unit/expected_test_results/ecoscore/grade-a-with-recyclable-label.json b/tests/unit/expected_test_results/ecoscore/grade-a-with-recyclable-label.json index 4c649b276bfae..1f6f7b168039e 100644 --- a/tests/unit/expected_test_results/ecoscore/grade-a-with-recyclable-label.json +++ b/tests/unit/expected_test_results/ecoscore/grade-a-with-recyclable-label.json @@ -13,6 +13,9 @@ ], "epi_score" : 93, "epi_value" : 4, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:france" ], diff --git a/tests/unit/expected_test_results/ecoscore/ingredient-palm-oil-rspo.json b/tests/unit/expected_test_results/ecoscore/ingredient-palm-oil-rspo.json index 5630712a2233b..4cdb6c48a77fb 100644 --- a/tests/unit/expected_test_results/ecoscore/ingredient-palm-oil-rspo.json +++ b/tests/unit/expected_test_results/ecoscore/ingredient-palm-oil-rspo.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/ingredient-palm-oil.json b/tests/unit/expected_test_results/ecoscore/ingredient-palm-oil.json index 04f254a642eed..9f13d4e79e6a3 100644 --- a/tests/unit/expected_test_results/ecoscore/ingredient-palm-oil.json +++ b/tests/unit/expected_test_results/ecoscore/ingredient-palm-oil.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/known-category-butters.json b/tests/unit/expected_test_results/ecoscore/known-category-butters.json index 8f494b5897d51..ad30a812d3d48 100644 --- a/tests/unit/expected_test_results/ecoscore/known-category-butters.json +++ b/tests/unit/expected_test_results/ecoscore/known-category-butters.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/known-category-margarines.json b/tests/unit/expected_test_results/ecoscore/known-category-margarines.json index 04f254a642eed..9f13d4e79e6a3 100644 --- a/tests/unit/expected_test_results/ecoscore/known-category-margarines.json +++ b/tests/unit/expected_test_results/ecoscore/known-category-margarines.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/label-ab-hve-msc-asc.json b/tests/unit/expected_test_results/ecoscore/label-ab-hve-msc-asc.json index 4b117dc71f38e..583914b7d6cfc 100644 --- a/tests/unit/expected_test_results/ecoscore/label-ab-hve-msc-asc.json +++ b/tests/unit/expected_test_results/ecoscore/label-ab-hve-msc-asc.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/label-ab-hve.json b/tests/unit/expected_test_results/ecoscore/label-ab-hve.json index e537e0357e3e7..4a8c9cd219dad 100644 --- a/tests/unit/expected_test_results/ecoscore/label-ab-hve.json +++ b/tests/unit/expected_test_results/ecoscore/label-ab-hve.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/label-msc-asc.json b/tests/unit/expected_test_results/ecoscore/label-msc-asc.json index a43702c0137de..172aca559b16a 100644 --- a/tests/unit/expected_test_results/ecoscore/label-msc-asc.json +++ b/tests/unit/expected_test_results/ecoscore/label-msc-asc.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/label-organic.json b/tests/unit/expected_test_results/ecoscore/label-organic.json index 26bc710d3dd7c..0583c7ff1ead3 100644 --- a/tests/unit/expected_test_results/ecoscore/label-organic.json +++ b/tests/unit/expected_test_results/ecoscore/label-organic.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/lamb-leg.json b/tests/unit/expected_test_results/ecoscore/lamb-leg.json index d41ceabf00e4a..5fdbd7bbfa1df 100644 --- a/tests/unit/expected_test_results/ecoscore/lamb-leg.json +++ b/tests/unit/expected_test_results/ecoscore/lamb-leg.json @@ -13,6 +13,9 @@ ], "epi_score" : 97, "epi_value" : 5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/milk.json b/tests/unit/expected_test_results/ecoscore/milk.json index 62b63a610ccd3..ebba3240d9700 100644 --- a/tests/unit/expected_test_results/ecoscore/milk.json +++ b/tests/unit/expected_test_results/ecoscore/milk.json @@ -13,6 +13,9 @@ ], "epi_score" : 93, "epi_value" : 4, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-in-origins-field-multiple.json b/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-in-origins-field-multiple.json index 68ed1ac9fa1a4..5d6d0f2a4a5bb 100644 --- a/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-in-origins-field-multiple.json +++ b/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-in-origins-field-multiple.json @@ -21,6 +21,9 @@ ], "epi_score" : 73.45, "epi_value" : 2, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:france", "en:belgium" diff --git a/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-in-origins-field.json b/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-in-origins-field.json index 012137b1d6417..d370149247f6e 100644 --- a/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-in-origins-field.json +++ b/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-in-origins-field.json @@ -18,6 +18,9 @@ ], "epi_score" : 80.1, "epi_value" : 3, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:france" ], diff --git a/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-nested-2.json b/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-nested-2.json index 2dfbc9b59e919..260d267380545 100644 --- a/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-nested-2.json +++ b/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-nested-2.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-nested.json b/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-nested.json index e6a3b375b1277..ac5c0f1f67e6b 100644 --- a/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-nested.json +++ b/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-nested.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-not-specified.json b/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-not-specified.json index 7f4cd5556c301..61b47c24f0e0c 100644 --- a/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-not-specified.json +++ b/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-not-specified.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-partly-specified.json b/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-partly-specified.json index 8832ea03bca2c..56bf6d6af1efb 100644 --- a/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-partly-specified.json +++ b/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-partly-specified.json @@ -17,6 +17,9 @@ ], "epi_score" : 55.8, "epi_value" : 1, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-specified-multiple.json b/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-specified-multiple.json index cf9c163e9ff5a..e1faac44c111e 100644 --- a/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-specified-multiple.json +++ b/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-specified-multiple.json @@ -33,6 +33,9 @@ ], "epi_score" : 65.3, "epi_value" : 2, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-specified.json b/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-specified.json index f06267412f5cf..3cbd986f5c12c 100644 --- a/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-specified.json +++ b/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-specified.json @@ -22,6 +22,9 @@ ], "epi_score" : 77.6, "epi_value" : 3, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-unknown-origin.json b/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-unknown-origin.json index 4ea2c08ffb967..22da02ce6bcf9 100644 --- a/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-unknown-origin.json +++ b/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-unknown-origin.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-unspecified-origin.json b/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-unspecified-origin.json index 47083bd481d68..3a47059604b30 100644 --- a/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-unspecified-origin.json +++ b/tests/unit/expected_test_results/ecoscore/origins-of-ingredients-unspecified-origin.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unspecified" ], diff --git a/tests/unit/expected_test_results/ecoscore/packaging-en-bulk.json b/tests/unit/expected_test_results/ecoscore/packaging-en-bulk.json index 9aa1cfe0b0e7c..6c8c896123c0e 100644 --- a/tests/unit/expected_test_results/ecoscore/packaging-en-bulk.json +++ b/tests/unit/expected_test_results/ecoscore/packaging-en-bulk.json @@ -14,6 +14,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/packaging-en-multiple-over-maximum-malus.json b/tests/unit/expected_test_results/ecoscore/packaging-en-multiple-over-maximum-malus.json index 1ca0c418dc334..e3e8e001e5e64 100644 --- a/tests/unit/expected_test_results/ecoscore/packaging-en-multiple-over-maximum-malus.json +++ b/tests/unit/expected_test_results/ecoscore/packaging-en-multiple-over-maximum-malus.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/packaging-en-multiple.json b/tests/unit/expected_test_results/ecoscore/packaging-en-multiple.json index 519089e3e7813..74a8ea82c40e1 100644 --- a/tests/unit/expected_test_results/ecoscore/packaging-en-multiple.json +++ b/tests/unit/expected_test_results/ecoscore/packaging-en-multiple.json @@ -14,6 +14,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/packaging-en-pet-bottle.json b/tests/unit/expected_test_results/ecoscore/packaging-en-pet-bottle.json index 5aec6d8d8f0c1..aafbfcf471148 100644 --- a/tests/unit/expected_test_results/ecoscore/packaging-en-pet-bottle.json +++ b/tests/unit/expected_test_results/ecoscore/packaging-en-pet-bottle.json @@ -14,6 +14,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/packaging-en-plastic-bottle.json b/tests/unit/expected_test_results/ecoscore/packaging-en-plastic-bottle.json index 0344196dbb2d8..c77e8281a0b4b 100644 --- a/tests/unit/expected_test_results/ecoscore/packaging-en-plastic-bottle.json +++ b/tests/unit/expected_test_results/ecoscore/packaging-en-plastic-bottle.json @@ -14,6 +14,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/packaging-en-unspecified-material-bottle.json b/tests/unit/expected_test_results/ecoscore/packaging-en-unspecified-material-bottle.json index a483bf3fc46f3..f2fb2fa5aa94b 100644 --- a/tests/unit/expected_test_results/ecoscore/packaging-en-unspecified-material-bottle.json +++ b/tests/unit/expected_test_results/ecoscore/packaging-en-unspecified-material-bottle.json @@ -14,6 +14,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/packaging-en-unspecified-material-can.json b/tests/unit/expected_test_results/ecoscore/packaging-en-unspecified-material-can.json index 8e1c1a9010df5..2e457829fdb18 100644 --- a/tests/unit/expected_test_results/ecoscore/packaging-en-unspecified-material-can.json +++ b/tests/unit/expected_test_results/ecoscore/packaging-en-unspecified-material-can.json @@ -14,6 +14,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/packaging-fr-new-shapes.json b/tests/unit/expected_test_results/ecoscore/packaging-fr-new-shapes.json index 5e940d1a820ca..64f14c892a8f3 100644 --- a/tests/unit/expected_test_results/ecoscore/packaging-fr-new-shapes.json +++ b/tests/unit/expected_test_results/ecoscore/packaging-fr-new-shapes.json @@ -14,6 +14,9 @@ ], "epi_score" : 93, "epi_value" : 4, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/packaging-unspecified-no-a-eco-score.json b/tests/unit/expected_test_results/ecoscore/packaging-unspecified-no-a-eco-score.json index 4c804758040d2..cff0015e5ac84 100644 --- a/tests/unit/expected_test_results/ecoscore/packaging-unspecified-no-a-eco-score.json +++ b/tests/unit/expected_test_results/ecoscore/packaging-unspecified-no-a-eco-score.json @@ -14,6 +14,9 @@ ], "epi_score" : 93, "epi_value" : 4, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/packaging-unspecified.json b/tests/unit/expected_test_results/ecoscore/packaging-unspecified.json index 799b5ac46fcca..1713e77b8ea35 100644 --- a/tests/unit/expected_test_results/ecoscore/packaging-unspecified.json +++ b/tests/unit/expected_test_results/ecoscore/packaging-unspecified.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/skyr.json b/tests/unit/expected_test_results/ecoscore/skyr.json index 2312c8553b8f9..c0eda7b7e9b21 100644 --- a/tests/unit/expected_test_results/ecoscore/skyr.json +++ b/tests/unit/expected_test_results/ecoscore/skyr.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/sum-of-bonuses-greater-than-25.json b/tests/unit/expected_test_results/ecoscore/sum-of-bonuses-greater-than-25.json index 1c1f09829d288..6bd5ee70fd3b2 100644 --- a/tests/unit/expected_test_results/ecoscore/sum-of-bonuses-greater-than-25.json +++ b/tests/unit/expected_test_results/ecoscore/sum-of-bonuses-greater-than-25.json @@ -13,6 +13,9 @@ ], "epi_score" : 93, "epi_value" : 4, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/track-ecoscore-changes.json b/tests/unit/expected_test_results/ecoscore/track-ecoscore-changes.json index dca64a151a1d8..3d158a364884a 100644 --- a/tests/unit/expected_test_results/ecoscore/track-ecoscore-changes.json +++ b/tests/unit/expected_test_results/ecoscore/track-ecoscore-changes.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/track-ecoscore-no-change.json b/tests/unit/expected_test_results/ecoscore/track-ecoscore-no-change.json index 2218ae543ca0d..9b9c5d8ddea44 100644 --- a/tests/unit/expected_test_results/ecoscore/track-ecoscore-no-change.json +++ b/tests/unit/expected_test_results/ecoscore/track-ecoscore-no-change.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/track-ecoscore-same-grade.json b/tests/unit/expected_test_results/ecoscore/track-ecoscore-same-grade.json index 4917318146fd6..91a9e2fa21aed 100644 --- a/tests/unit/expected_test_results/ecoscore/track-ecoscore-same-grade.json +++ b/tests/unit/expected_test_results/ecoscore/track-ecoscore-same-grade.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/track-ecoscore-tags-retained.json b/tests/unit/expected_test_results/ecoscore/track-ecoscore-tags-retained.json index 275502b8f3065..50d2328bc6633 100644 --- a/tests/unit/expected_test_results/ecoscore/track-ecoscore-tags-retained.json +++ b/tests/unit/expected_test_results/ecoscore/track-ecoscore-tags-retained.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/uk-milk.json b/tests/unit/expected_test_results/ecoscore/uk-milk.json index 76e27e265f6ac..0d4dae065bd82 100644 --- a/tests/unit/expected_test_results/ecoscore/uk-milk.json +++ b/tests/unit/expected_test_results/ecoscore/uk-milk.json @@ -13,6 +13,9 @@ ], "epi_score" : 97, "epi_value" : 5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/unknown-category.json b/tests/unit/expected_test_results/ecoscore/unknown-category.json index 311478c8a72c2..911f6f9069165 100644 --- a/tests/unit/expected_test_results/ecoscore/unknown-category.json +++ b/tests/unit/expected_test_results/ecoscore/unknown-category.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ], diff --git a/tests/unit/expected_test_results/ecoscore/yogurt.json b/tests/unit/expected_test_results/ecoscore/yogurt.json index dcb89cdb9675b..2ee221e138c12 100644 --- a/tests/unit/expected_test_results/ecoscore/yogurt.json +++ b/tests/unit/expected_test_results/ecoscore/yogurt.json @@ -13,6 +13,9 @@ ], "epi_score" : 0, "epi_value" : -5, + "origins_from_categories" : [ + "en:unknown" + ], "origins_from_origins_field" : [ "en:unknown" ],