Exemplo n.º 1
0
def test_action_cards_in_different_positions(deck):
    action_cards = [card.card for card in deck if card.action is not None]

    deck2 = list(create_paw_deck())
    action_cards2 = [card.card for card in deck2 if card.action is not None]
    assert action_cards != action_cards2

    deck3 = list(create_paw_deck())
    action_cards3 = [card.card for card in deck3 if card.action is not None]
    assert action_cards != action_cards2 != action_cards3
Exemplo n.º 2
0
def deck():
    return list(create_paw_deck())
Exemplo n.º 3
0
def test_out_of_bound_arg():
    with pytest.raises(ValueError):
        create_paw_deck(n=27)
Exemplo n.º 4
0
def test_deck_numbers_used():
    for i in range(1, 27):
        deck = list(create_paw_deck(i))
        assert sum(1 for card in deck if int(card.card[1:]) == 1) == i
Exemplo n.º 5
0
def big_deck():
    return list(create_paw_deck(16))
Exemplo n.º 6
0
def small_deck():
    return list(create_paw_deck(4))