Skip to content

Commit

Permalink
Tests: Fix expect_name_in_output tests again.............
Browse files Browse the repository at this point in the history
  • Loading branch information
strangetom committed Jan 31, 2025
1 parent c084d03 commit 065a87c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/parser/test_expect_name_in_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ def test_enabled(self):
"""
Test that the return name is not None
"""
sentence = "A few thyme sprigs"
sentence = "4 Heath bars (1 1/8 ounces each)"
parsed = parse_ingredient(sentence, expect_name_in_output=True)
assert parsed.name != []

def test_disabled(self):
"""
Test that the returned name is None
"""
sentence = "A few thyme sprigs"
sentence = "4 Heath bars (1 1/8 ounces each)"
parsed = parse_ingredient(sentence, expect_name_in_output=False)
assert parsed.name == []

Expand Down

0 comments on commit 065a87c

Please sign in to comment.