fix: test fixture — add protein_delta to substitution_pairs inserts

This commit is contained in:
pyr0ball 2026-03-30 23:16:15 -07:00
parent 2ca76bddec
commit 925d1eeacb

View file

@ -7,15 +7,15 @@ def store_with_subs(store_with_profiles):
store_with_profiles.conn.execute(""" store_with_profiles.conn.execute("""
INSERT INTO substitution_pairs INSERT INTO substitution_pairs
(original_name, substitute_name, constraint_label, (original_name, substitute_name, constraint_label,
fat_delta, moisture_delta, glutamate_delta, occurrence_count) fat_delta, moisture_delta, glutamate_delta, protein_delta, occurrence_count)
VALUES (?,?,?,?,?,?,?) VALUES (?,?,?,?,?,?,?,?)
""", ("butter", "coconut oil", "vegan", -1.0, 0.0, 0.0, 15)) """, ("butter", "coconut oil", "vegan", -1.0, 0.0, 0.0, 0.0, 15))
store_with_profiles.conn.execute(""" store_with_profiles.conn.execute("""
INSERT INTO substitution_pairs INSERT INTO substitution_pairs
(original_name, substitute_name, constraint_label, (original_name, substitute_name, constraint_label,
fat_delta, moisture_delta, glutamate_delta, occurrence_count) fat_delta, moisture_delta, glutamate_delta, protein_delta, occurrence_count)
VALUES (?,?,?,?,?,?,?) VALUES (?,?,?,?,?,?,?,?)
""", ("ground beef", "lentils", "vegan", -15.0, 10.0, -2.0, 45)) """, ("ground beef", "lentils", "vegan", -15.0, 10.0, -2.0, 5.0, 45))
store_with_profiles.conn.commit() store_with_profiles.conn.commit()
return store_with_profiles return store_with_profiles