Esempio n. 1
0
def test_parses_ingredient_before_quantity(ingredient_line, expected_result):
    actual = ingredients.parse_ingredient_line(ingredient_line)
    expected = make_ingredient(expected_result)
    assert_ingredient_equal(expected, actual)
Esempio n. 2
0
def test_parses_ingredient_line_with_unit_size(ingredient_line, expected_result):
    actual = ingredients.parse_ingredient_line(ingredient_line)
    expected = make_ingredient(expected_result)
    assert_ingredient_equal(expected, actual)
Esempio n. 3
0
def test_parses_ingredient_line_where_ingredient_has_multiple_amount_values(ingredient_line, expected_result):
    actual = ingredients.parse_ingredient_line(ingredient_line)
    expected = make_ingredient(expected_result)
    assert_ingredient_equal(expected, actual)
Esempio n. 4
0
def test_parses_ingredient_line_where_quantity_amount_is_words(ingredient_line, expected_result):
    actual = ingredients.parse_ingredient_line(ingredient_line)
    expected = make_ingredient(expected_result)
    assert_ingredient_equal(expected, actual)
Esempio n. 5
0
def test_parses_amount_range(ingredient_line, expected_result):
    actual = ingredients.parse_ingredient_line(ingredient_line)
    expected = make_ingredient(expected_result)
    assert_ingredient_equal(expected, actual)