Skip to content

Commit ecbfe5a

Browse files
committed
Added another test case
1 parent 8dbcfa8 commit ecbfe5a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_main.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,12 @@ def test_check_randomAI2():
2929
"""Checks to make sure the turnCounter in randomAI does not return true."""
3030
main.randomAI()
3131
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

Comments
 (0)