Skip to content

Commit

Permalink
Merge pull request #194 from Whist-Team/update/team_tests
Browse files Browse the repository at this point in the history
UPDATE: small verification of team behaviour
  • Loading branch information
iTitus committed May 20, 2022
2 parents 8905604 + 2962d7e commit 5220f95
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/whist/core/scoring/test_score_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ def test_add_score(self):
score = Score([self.team_a, self.team_b], [1, 0])
self.score_card.add_score(score)
self.assertEqual(1, len(self.score_card))
self.assertEqual(1, self.score_card.score(self.team_a))
self.assertEqual(0, self.score_card.score(self.team_b))

def test_draw(self):
score = Score([self.team_a, self.team_b], [1, 0])
Expand Down
8 changes: 8 additions & 0 deletions tests/whist/core/scoring/test_team.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from tests.whist.core.team_base_test_case import TeamBaseTestCase
from whist.core.scoring.team import Team


class TeamTestCase(TeamBaseTestCase):
def test_equal(self):
expected_team = Team(players=[self.player_a, self.player_b])
self.assertEqual(expected_team, self.team_a)

0 comments on commit 5220f95

Please sign in to comment.