fix: test fixture — add protein_delta to substitution_pairs inserts
This commit is contained in:
parent
96850c6d2a
commit
3527d61655
1 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue