pytest logo pytest: clean params

1 2 3 4 5 6 7 8 9 10 11
Notes

The new test_blackjack.py file looks like this;

import pytest

from blackjack import card_score

@pytest.mark.parametrize("cards,score", [('JK', 20), ('KKK', 0), ('AA', 12), ('AK', 21)])
def test_simple_usecase(cards, score):
    assert card_score(cards) == score

We hope you agree it is better this way.