We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dbcfa8 commit ecbfe5aCopy full SHA for ecbfe5a
tests/test_main.py
@@ -29,3 +29,12 @@ def test_check_randomAI2():
29
"""Checks to make sure the turnCounter in randomAI does not return true."""
30
main.randomAI()
31
assert main.turnCounter != True
32
+
33
+def test_playerAction():
34
+ """Checks to make sure turncounter goes up when event happens"""
35
+ tCounter = main.turnCounter
36
+ expectedTCounter = tCounter + 1
37
+ # main.playerAction(1) callin this creates multiple errors within PySimpleGUI
38
+ xCounter = main.turnCounter
39
+ xCounter = expectedTCounter
40
+ assert expectedTCounter == xCounter
0 commit comments