File tree 1 file changed +0
-5
lines changed
1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ def test_bad_board():
55
55
56
56
for bad in ['ABC' , '...XXX' , 'XXXOOOXX' ]:
57
57
rv , out = getstatusoutput (f'{ prg } --board { bad } ' )
58
- print (out )
59
58
assert rv != 0
60
59
assert re .search (expected .format (bad ), out )
61
60
@@ -65,9 +64,7 @@ def test_bad_player():
65
64
"""dies on bad player"""
66
65
67
66
bad = random .choice ([c for c in string .ascii_uppercase if c not in 'XO' ])
68
- print (f'{ prg } -p { bad } ' )
69
67
rv , out = getstatusoutput (f'{ prg } -p { bad } ' )
70
- print (out )
71
68
assert rv != 0
72
69
expected = f"-p/--player: invalid choice: '{ bad } '"
73
70
assert re .search (expected , out )
@@ -119,7 +116,6 @@ def test_good_board_01():
119
116
""" .strip ()
120
117
121
118
rv , out = getstatusoutput (f'{ prg } -b .........' )
122
- print (f'rv = "{ rv } "' )
123
119
assert rv == 0
124
120
assert out .strip () == board
125
121
@@ -226,6 +222,5 @@ def test_losing():
226
222
losing_board = list ('XXOO.....' )
227
223
for i in range (10 ):
228
224
random .shuffle (losing_board )
229
- print (f'{ prg } { " " .join (losing_board )} ' )
230
225
out = getoutput (f'{ prg } -b { "" .join (losing_board )} ' ).splitlines ()
231
226
assert out [- 1 ].strip () == 'No winner.'
You can’t perform that action at this time.
0 commit comments