Esempio n. 1
0
def test_invalid_wine_type():
    with pytest.raises(ValueError):
        best_match_per_wine("cocacola")
Esempio n. 2
0
def test_best_match_per_wine_all():
    assert best_match_per_wine()[2] == 13.0
Esempio n. 3
0
def test_best_match_per_wine_type(case):
    wine_type, *result = case
    assert best_match_per_wine(wine_type) == tuple(result)