Skip to content

Commit 842da88

Browse files
committed
Adds a working us_realm test with a non-encrypted map file.
1 parent 824bf46 commit 842da88

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed
109 KB
Binary file not shown.

test_replays/test_all.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,15 @@ def test_random_player():
121121
assert gogeta.actual_race == "Terran"
122122

123123
def test_us_realm():
124-
replay = Replay("test_replays/build17811/4.sc2replay")
125-
lalush = find(lambda player: player.name == "lalush", replay.players)
126-
avilo = find(lambda player: player.name == "avilo", replay.players)
124+
replay = Replay("test_replays/build17811/5.sc2replay")
125+
shades = find(lambda player: player.name == "ShadesofGray", replay.players)
126+
dawn = find(lambda player: player.name == "reddawn", replay.players)
127127

128-
assert lalush.url == "http://us.battle.net/sc2/en/profile/2396588/1/lalush/"
129-
assert avilo.url == "http://us.battle.net/sc2/en/profile/327563/1/avilo/"
128+
assert shades.url == "http://us.battle.net/sc2/en/profile/2358439/1/ShadesofGray/"
129+
assert dawn.url == "http://us.battle.net/sc2/en/profile/2198663/1/reddawn/"
130130

131+
132+
def test_encrypted():
133+
replay = Replay("test_replays/build17811/4.sc2replay")
134+
131135
#TODO: Test 2v2, 4v4 and FFA

0 commit comments

Comments
 (0)