2025-10-29 17:37:55 +01:00
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
|
from pyjack.hand import Hand
|
|
|
|
|
|
|
|
|
|
@pytest.fixture
|
|
|
|
|
def default_hand():
|
|
|
|
|
my_hand = Hand()
|
|
|
|
|
return my_hand
|
|
|
|
|
|
2025-10-29 17:43:01 +01:00
|
|
|
# Test 2.1
|
2025-10-29 17:37:55 +01:00
|
|
|
def test_adding_card_to_hand(default_hand):
|
|
|
|
|
default_hand.add_card("diamonds","2")
|
2025-10-29 17:38:51 +01:00
|
|
|
default_hand.add_card("diamonds","K")
|