Calmcode - pytest: more tests

More Tests

1 2 3 4 5 6 7 8 9 10 11

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?