return {x[0]: x for x in rows}
-def sql_nutrients_details() -> tuple:
+def sql_nutrients_details() -> tuple[list, list]:
"""Shows nutrients 'details'"""
query = "SELECT * FROM nutrients_overview;"
"""Performs cursory inspection (sanity checks) of usda.sqlite3 image"""
version = usda_ver()
assert version == __db_target_usda__
- result = usda_funcs.sql_nutrients_details()
- assert len(result[1]) == 186
+ rows, _ = usda_funcs.sql_nutrients_details()
+ assert len(rows) == 186
result = usda_funcs.sql_servings({9050, 9052})
assert len(result) == 3