Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions test_replays/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ def test_creepTracker(self):
if replay.player[player_id].play_race == "Zerg":
assert replay.player[player_id].max_creep_spread[1] >0
assert replay.player[player_id].creep_spread_by_minute[0] >0
# print "MCS", replay.player[player_id].max_creep_spread
# print "CSBM", replay.player[player_id].creep_spread_by_minute
# print("MCS", replay.player[player_id].max_creep_spread)
# print("CSBM", replay.player[player_id].creep_spread_by_minute)


replay =factory.load_replay("test_replays/2.0.8.25605/ggtracker_3621402.SC2Replay",load_map= True,engine=pluginEngine,load_level=4)
Expand Down Expand Up @@ -449,7 +449,7 @@ def test_30(self):

def test_31(self):
for i in range(1,5):
print "DOING {}".format(i)
print("DOING {}".format(i))
replay = sc2reader.load_replay("test_replays/3.1.0/{}.SC2Replay".format(i))

def test_30_map(self):
Expand All @@ -467,7 +467,7 @@ def test_30_apms(self):
replay = factory.load_replay("test_replays/3.0.0.38215/fourth.SC2Replay")
for player in replay.players:
if player.name == 'Owl':
print player.name, player.avg_apm
print(player.name, player.avg_apm)
self.assertTrue(player.avg_apm > 110)

def test_38749(self):
Expand All @@ -489,7 +489,7 @@ def test_funny_minerals(self):
itemlist = xmldoc.getElementsByTagName('ObjectUnit')
mineralPosStrs = [ou.attributes['Position'].value for ou in itemlist if 'MineralField' in ou.attributes['UnitType'].value]
mineralFieldNames = list(set([ou.attributes['UnitType'].value for ou in itemlist if 'MineralField' in ou.attributes['UnitType'].value]))
#print mineralFieldNames
# print(mineralFieldNames)
self.assertTrue(len(mineralPosStrs) > 0)

def test_dusk(self):
Expand Down