pytest logo pytest: more tests

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

The test_blackjack.py now has more tests.

from blackjack import card_score

def test_simple_usecase1():
    card_score("JK") == 20

def test_simple_usecase2():
    card_score("JKQ") == 0

def test_simple_usecase3():
    card_score("KA") == 21

Before watching the next video, can you spot the bug?