Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
replace a HotS summary with a LotV summary ...
  • Loading branch information
Dominik Neise committed Jun 26, 2019
commit 57c7064446c03a2c576bd3cfe73f0dd0595de2b4
Binary file added test_s2gs/lotv.s2gs
Binary file not shown.
10 changes: 6 additions & 4 deletions test_s2gs/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ def test_a_WoL_s2gs(self):
self.assertEqual(summary.players[0].build_order[0].order, 'Probe')
self.assertEqual(summary.expansion, 'WoL')

def test_a_HotS_s2gs(self):
summary = sc2reader.load_game_summary("test_s2gs/hots1.s2gs")
self.assertEqual(summary.players[0].resource_collection_rate, 1599)
self.assertEqual(summary.players[0].build_order[0].order, 'SCV')
def test_a_LotV_s2gs(self):
summary = sc2reader.load_game_summary("test_s2gs/lotv.s2gs")
self.assertEqual(summary.players[0].resource_collection_rate, 1619)
self.assertEqual(summary.players[0].build_order[0].order, 'Probe')
self.assertEqual(summary.expansion, 'HotS')

"""
def test_another_HotS_s2gs(self):
summary = sc2reader.load_game_summary("test_s2gs/hots2.s2gs")
self.assertEqual(summary.players[0].enemies_destroyed, 14575)
Expand All @@ -35,6 +36,7 @@ def test_another_HotS_s2gs(self):
self.assertEqual(summary.players[0].workers_active_graph.as_points()[8][1], 25)
self.assertEqual(summary.players[0].upgrade_spending_graph.as_points()[8][1], 300)
self.assertEqual(summary.expansion, 'HotS')
"""

if __name__ == '__main__':
unittest.main()