Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
boldandbrad committed Feb 19, 2024
1 parent a023c34 commit 0fbd446
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ name = "euchre"

[tool.isort]
profile = "black"
skip = ["src/euchre/abstract/__init__.py"]

[tool.pytest.ini_options]
minversion = "6.0"
Expand Down
9 changes: 5 additions & 4 deletions src/euchre/abstract/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from .card import Card
from .computer import Computer
from .face import Face
from .human import Human
from .player import Player
from .suit import Suit
from .card import Card

from .team import Team
from .player import Player
from .computer import Computer
from .human import Human

__all__ = (Suit, Face, Card, Team, Player, Computer, Human)
2 changes: 1 addition & 1 deletion src/euchre/util/rule_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def valid_play(
"""
valid = False
# reason = 0
if not player_hand or len(player_hand) == 1:
if not played_cards or len(player_hand) == 1:
valid = True
# reason = 1
else:
Expand Down
2 changes: 1 addition & 1 deletion tests/command/test_play.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from click.testing import CliRunner

from euchre.euchre import cli
from euchre.root import cli


def test_play():
Expand Down
2 changes: 1 addition & 1 deletion tests/command/test_rules.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from click.testing import CliRunner

from euchre.euchre import cli
from euchre.root import cli


def test_rules(mocker):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_euchre.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from click.testing import CliRunner

from euchre.euchre import cli
from euchre.root import cli


def test_version():
Expand Down

0 comments on commit 0fbd446

Please sign in to comment.