Skip to content

Commit

Permalink
Recreate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Naruyoko committed Dec 25, 2023
1 parent ffc7b27 commit 8ddaaad
Show file tree
Hide file tree
Showing 43 changed files with 1,129 additions and 5,074 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"Café Robusta moulu",
"Café au lait en poudre soluble",
"Café au lait instantané non sucré",
"Café au lait non sucré",
"Café au lait sucré",
"Café brésilien",
"Café crème instantané non sucré",
Expand All @@ -22,6 +23,5 @@
"Café du Guatemala",
"Café du Honduras",
"Café du Laos",
"Café du Mexique",
"Café du Nicaragua"
"Café du Mexique"
]
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"Café Robusta moulu",
"Café au lait en poudre soluble",
"Café au lait instantané non sucré",
"Café au lait non sucré",
"Café au lait sucré",
"Café brésilien",
"Café crème instantané non sucré",
Expand All @@ -22,6 +23,5 @@
"Café du Guatemala",
"Café du Honduras",
"Café du Laos",
"Café du Mexique",
"Café du Nicaragua"
"Café du Mexique"
]
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
"attributes" : [
{
"description" : "",
"description_short" : "Qualité nutritionnelle moyenne",
"grade" : "c",
"icon_url" : "http://static.openfoodfacts.localhost/images/attributes/dist/nutriscore-c.svg",
"description_short" : "Données manquantes pour calculer le Nutri-Score",
"grade" : "unknown",
"icon_url" : "http://static.openfoodfacts.localhost/images/attributes/dist/nutriscore-unknown.svg",
"id" : "nutriscore",
"match" : 57.8888888888889,
"match" : 0,
"name" : "Nutri-Score",
"panel_id" : "nutriscore",
"status" : "known",
"title" : "Nutri-Score C"
"status" : "unknown",
"title" : "Nutri-Score inconnu"
},
{
"grade" : "unknown",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
"attributes" : [
{
"description" : "",
"description_short" : "Average nutritional quality",
"grade" : "c",
"icon_url" : "http://static.openfoodfacts.localhost/images/attributes/dist/nutriscore-c.svg",
"description_short" : "Missing data to compute the Nutri-Score",
"grade" : "unknown",
"icon_url" : "http://static.openfoodfacts.localhost/images/attributes/dist/nutriscore-unknown.svg",
"id" : "nutriscore",
"match" : 57.8888888888889,
"match" : 0,
"name" : "Nutri-Score",
"panel_id" : "nutriscore",
"status" : "known",
"title" : "Nutri-Score C"
"status" : "unknown",
"title" : "Nutri-Score unknown"
},
{
"grade" : "unknown",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@
"20xxxxxxxxxx",
"2xxxxxxxxxxx"
],
"compared_to_category" : "en:sweet-snacks",
"complete" : 0,
"completeness" : 0.5,
"completeness" : 0.4,
"correctors_tags" : [],
"created_t" : "--ignore--",
"creator" : "tests",
Expand Down Expand Up @@ -594,7 +593,6 @@
"vegetarian" : "yes"
},
{
"ciqual_proxy_food_code" : "19051",
"id" : "en:milk",
"percent_estimate" : 18.75,
"percent_max" : 50,
Expand Down Expand Up @@ -689,8 +687,10 @@
"ingredients_with_specified_percent_sum" : 0,
"ingredients_with_unspecified_percent_n" : 4,
"ingredients_with_unspecified_percent_sum" : 100,
"ingredients_without_ciqual_codes" : [],
"ingredients_without_ciqual_codes_n" : 0,
"ingredients_without_ciqual_codes" : [
"en:milk"
],
"ingredients_without_ciqual_codes_n" : 1,
"interface_version_created" : "20150316.jqm2",
"interface_version_modified" : "20150316.jqm2",
"known_ingredients_n" : 10,
Expand Down Expand Up @@ -734,13 +734,10 @@
"en:nutriscore-missing-nutrition-data-sodium",
"en:nutriscore-missing-nutrition-data-proteins",
"en:nutrition-no-fiber",
"en:nutriscore-using-estimated-nutrition-facts",
"en:nutriscore-computed",
"en:nutriscore-not-computed",
"en:nutrition-fruits-vegetables-nuts-estimate-from-ingredients",
"en:nutrition-all-nutriscore-values-known",
"en:nutrition-no-fiber-or-fruits-vegetables-nuts",
"en:nutrition-fruits-vegetables-legumes-estimate-from-ingredients",
"en:nutriscore-2021-same-as-2023",
"en:nutriscore-2021-c-2023-c",
"en:packagings-number-of-components-4",
"en:packagings-not-complete",
"en:packagings-not-empty-but-not-complete",
Expand Down Expand Up @@ -780,199 +777,76 @@
"fruits-vegetables-nuts-estimate-from-ingredients_serving" : 62.5,
"nova-group" : 3,
"nova-group_100g" : 3,
"nova-group_serving" : 3,
"nutrition-score-fr" : 3,
"nutrition-score-fr_100g" : 3
},
"nutriments_estimated" : {
"alcohol_100g" : 0,
"beta-carotene_100g" : 1.19375e-05,
"calcium_100g" : 0.0333875,
"carbohydrates_100g" : 7.6484375,
"cholesterol_100g" : 0.03778125,
"copper_100g" : 2.678125e-05,
"energy-kcal_100g" : 134.5875,
"energy-kj_100g" : 558.75,
"energy_100g" : 558.75,
"fat_100g" : 10.4134375,
"fiber_100g" : 0.8125,
"fructose_100g" : 3.77578125,
"galactose_100g" : 0,
"glucose_100g" : 2.0565625,
"iodine_100g" : 7.09375e-06,
"iron_100g" : 0.0002265625,
"lactose_100g" : 0.924375,
"magnesium_100g" : 0.00570625,
"maltose_100g" : 0.00703125,
"manganese_100g" : 2.73828125e-05,
"pantothenic-acid_100g" : 0.0002590625,
"phosphorus_100g" : 0.0445625,
"phylloquinone_100g" : 1.153125e-06,
"polyols_100g" : 0.36875,
"potassium_100g" : 0.09825,
"proteins_100g" : 1.974375,
"salt_100g" : 0.0496875,
"saturated-fat_100g" : 4.903125,
"selenium_100g" : 1.2290625e-06,
"sodium_100g" : 0.019725,
"starch_100g" : 0,
"sucrose_100g" : 0.51953125,
"sugars_100g" : 7.2621875,
"vitamin-a_100g" : 1.739625e-05,
"vitamin-b12_100g" : 2.278125e-07,
"vitamin-b1_100g" : 2.509375e-05,
"vitamin-b2_100g" : 9.34375e-05,
"vitamin-b6_100g" : 4.54375e-05,
"vitamin-b9_100g" : 4.10625e-06,
"vitamin-c_100g" : 0.00274375,
"vitamin-d_100g" : 1.903125e-07,
"vitamin-e_100g" : 0.001657625,
"vitamin-pp_100g" : 8.003125e-05,
"water_100g" : 78.365625,
"zinc_100g" : 0.0002046875
"nova-group_serving" : 3
},
"nutriscore" : {
"2021" : {
"category_available" : 1,
"data" : {
"energy" : 558.75,
"energy_points" : 1,
"energy_value" : 558.8,
"fiber" : 0.8125,
"fiber_points" : 0,
"fiber_value" : 0.81,
"energy" : null,
"fiber" : 0,
"fruits_vegetables_nuts_colza_walnut_olive_oils" : 62.5,
"fruits_vegetables_nuts_colza_walnut_olive_oils_points" : 2,
"fruits_vegetables_nuts_colza_walnut_olive_oils_value" : 62.5,
"is_beverage" : 0,
"is_cheese" : 0,
"is_fat" : 0,
"is_water" : 0,
"negative_points" : 6,
"positive_points" : 3,
"proteins" : 1.974375,
"proteins_points" : 1,
"proteins_value" : 1.97,
"saturated_fat" : 4.903125,
"saturated_fat_points" : 4,
"saturated_fat_value" : 4.9,
"sodium" : 19.725,
"sodium_points" : 0,
"sodium_value" : 19.7,
"sugars" : 7.2621875,
"sugars_points" : 1,
"sugars_value" : 7.26
"proteins" : null,
"saturated_fat" : null,
"sodium" : null,
"sugars" : null
},
"grade" : "c",
"nutrients_available" : 1,
"grade" : "unknown",
"nutrients_available" : 0,
"nutriscore_applicable" : 1,
"nutriscore_computed" : 1,
"score" : 3
"nutriscore_computed" : 0
},
"2023" : {
"category_available" : 1,
"data" : {
"count_proteins" : 1,
"count_proteins_reason" : "negative_points_less_than_11",
"energy" : 558.75,
"energy_points" : 1,
"fiber" : 0.8125,
"fiber_points" : 0,
"energy" : null,
"fiber" : 0,
"fruits_vegetables_legumes" : 62.5,
"fruits_vegetables_legumes_points" : 2,
"is_beverage" : 0,
"is_cheese" : 0,
"is_fat_oil_nuts_seeds" : 0,
"is_red_meat_product" : 0,
"is_water" : 0,
"negative_nutrients" : [
"energy",
"sugars",
"saturated_fat",
"salt",
"non_nutritive_sweeteners"
],
"negative_points" : 7,
"positive_nutrients" : [
"fruits_vegetables_legumes",
"fiber",
"proteins"
],
"positive_points" : 2,
"proteins" : 1.974375,
"proteins_points" : 0,
"salt" : 0.0496875,
"salt_points" : 0,
"saturated_fat" : 4.903125,
"saturated_fat_points" : 4,
"sugars" : 7.2621875,
"sugars_points" : 2
"proteins" : null,
"salt" : null,
"saturated_fat" : null,
"sugars" : null
},
"grade" : "c",
"nutrients_available" : 1,
"grade" : "unknown",
"nutrients_available" : 0,
"nutriscore_applicable" : 1,
"nutriscore_computed" : 1,
"score" : 5
"nutriscore_computed" : 0
}
},
"nutriscore_2021_tags" : [
"c"
"unknown"
],
"nutriscore_2023_tags" : [
"c"
"unknown"
],
"nutriscore_data" : {
"energy" : 558.75,
"energy_points" : 1,
"energy_value" : 558.8,
"fiber" : 0.8125,
"fiber_points" : 0,
"fiber_value" : 0.81,
"fruits_vegetables_nuts_colza_walnut_olive_oils" : 62.5,
"fruits_vegetables_nuts_colza_walnut_olive_oils_points" : 2,
"fruits_vegetables_nuts_colza_walnut_olive_oils_value" : 62.5,
"grade" : "c",
"is_beverage" : 0,
"is_cheese" : 0,
"is_fat" : 0,
"is_water" : 0,
"negative_points" : 6,
"positive_points" : 3,
"proteins" : 1.974375,
"proteins_points" : 1,
"proteins_value" : 1.97,
"saturated_fat" : 4.903125,
"saturated_fat_points" : 4,
"saturated_fat_value" : 4.9,
"score" : 3,
"sodium" : 19.725,
"sodium_points" : 0,
"sodium_value" : 19.7,
"sugars" : 7.2621875,
"sugars_points" : 1,
"sugars_value" : 7.26
},
"nutriscore_grade" : "c",
"nutriscore_score" : 3,
"nutriscore_score_opposite" : -3,
"nutriscore_grade" : "unknown",
"nutriscore_tags" : [
"c"
"unknown"
],
"nutriscore_version" : "2021",
"nutrition_data_per" : "100g",
"nutrition_data_prepared_per" : "100g",
"nutrition_grade_fr" : "c",
"nutrition_grades" : "c",
"nutrition_grade_fr" : "unknown",
"nutrition_grades" : "unknown",
"nutrition_grades_tags" : [
"c"
"unknown"
],
"nutrition_score_beverage" : 0,
"nutrition_score_debug" : "missing energy_100g - missing fat_100g - missing saturated-fat_100g - missing sugars_100g - missing sodium_100g - missing proteins_100g",
"nutrition_score_warning_fruits_vegetables_legumes_estimate_from_ingredients" : 1,
"nutrition_score_warning_fruits_vegetables_legumes_estimate_from_ingredients_value" : 62.5,
"nutrition_score_warning_fruits_vegetables_nuts_estimate_from_ingredients" : 1,
"nutrition_score_warning_fruits_vegetables_nuts_estimate_from_ingredients_value" : 62.5,
"nutrition_score_warning_nutriments_estimated" : 1,
"nutrition_score_warning_no_fiber" : 1,
"origin" : "france",
"origin_en" : "france",
"other_nutritional_substances_tags" : [],
Expand Down Expand Up @@ -1052,10 +926,10 @@
"rev" : 1,
"serving_quantity" : "10",
"serving_size" : "10 g",
"states" : "en:to-be-completed, en:nutrition-facts-completed, en:ingredients-completed, en:expiration-date-to-be-completed, en:packaging-code-to-be-completed, en:characteristics-to-be-completed, en:origins-to-be-completed, en:categories-completed, en:brands-to-be-completed, en:packaging-to-be-completed, en:quantity-completed, en:product-name-completed, en:photos-to-be-uploaded",
"states" : "en:to-be-completed, en:nutrition-facts-to-be-completed, en:ingredients-completed, en:expiration-date-to-be-completed, en:packaging-code-to-be-completed, en:characteristics-to-be-completed, en:origins-to-be-completed, en:categories-completed, en:brands-to-be-completed, en:packaging-to-be-completed, en:quantity-completed, en:product-name-completed, en:photos-to-be-uploaded",
"states_hierarchy" : [
"en:to-be-completed",
"en:nutrition-facts-completed",
"en:nutrition-facts-to-be-completed",
"en:ingredients-completed",
"en:expiration-date-to-be-completed",
"en:packaging-code-to-be-completed",
Expand All @@ -1070,7 +944,7 @@
],
"states_tags" : [
"en:to-be-completed",
"en:nutrition-facts-completed",
"en:nutrition-facts-to-be-completed",
"en:ingredients-completed",
"en:expiration-date-to-be-completed",
"en:packaging-code-to-be-completed",
Expand Down
Loading

0 comments on commit 8ddaaad

Please sign in to comment.