Skip to content

Commit 531ea07

Browse files
committed
Added a test for two player replay without a winner
1 parent ed77526 commit 531ea07

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed
39.1 KB
Binary file not shown.

test_replays/test_all.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,9 @@ def test_22():
280280
print replay.players[0].name
281281
print replay.players[1].name
282282
assert 1==0
283-
284-
def test_23():
283+
284+
# TODO: No winner?
285+
def test_two_player_game_without_winner():
285286
replay = Replay("test_replays/build17811/23.SC2Replay")
286287
print replay.realm
287288
print len(replay.players)
@@ -291,7 +292,12 @@ def test_23():
291292
print replay.players[1].choosen_race
292293
print replay.players[0].name
293294
print replay.players[1].name
294-
assert 1==0
295+
print len(replay.actors)
296+
print replay.players[0].result
297+
print replay.players[1].result
298+
print replay.actors[2].result
299+
print replay.actors[3].result
300+
assert replay.players[0].result == 'Win' || replay.players[1].result == 'Win'
295301

296302
def test_24():
297303
replay = Replay("test_replays/build17811/24.SC2Replay")

0 commit comments

Comments
 (0)