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 96850c6d2a
commit 3527d61655

View file

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