Skip to content

Commit f16b644

Browse files
committed
Merge remote branch 'upstream/master'
2 parents d99f7ae + 2191721 commit f16b644

File tree

6 files changed

+19
-18
lines changed

6 files changed

+19
-18
lines changed

CONTRIBUTORS.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ Author and Maintainer:
22
Graylin Kim - graylinkim @ github
33

44
Contributors:
5-
Alexander Hanhikoski - alexhanh @ github
5+
Alexander Hanhikoski - alexhanh @ github
6+
Bas Peschier (fizzgig) - bpeschier @ github

test_replays/build17811/info.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1.sc2replay
1+
1.SC2Replay
22
Date played 20 Feb 2011 22:44:48
33
Duration 32:47
44
Region/Realm EU
@@ -27,7 +27,7 @@ Messages (count=12):
2727
Boom [All]: huh?
2828

2929

30-
2.sc2replay
30+
2.SC2Replay
3131
Date played 21 Feb 2011 00:42:13
3232
Duration 9:09
3333
Region/Realm EU
@@ -45,7 +45,7 @@ Messages (count=1):
4545
Laquendi [All]: gg
4646

4747

48-
3.sc2replay
48+
3.SC2Replay
4949
Date played 25 Feb 2011 16:36:28
5050
Duration 10:29
5151
Region/Realm EU
@@ -64,4 +64,4 @@ Players (no observers)
6464
Foco Terran
6565
Messages (count=25):
6666
First msg: loropendejo [Allies]: hi
67-
Last msg: Aspirates [Allies]: all team goo
67+
Last msg: Aspirates [Allies]: all team goo

test_replays/test_all.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ def test_empty():
1616
# Maybe a "production" mode would be nice to have, so that it simply returns a status of the parse without
1717
# raising an exception.
1818
with pytest.raises(ValueError):
19-
Replay("test_replays/corrupted/empty.sc2replay")
19+
Replay("test_replays/corrupted/empty.SC2Replay")
2020

2121
# Tests for build 17811 replays
2222

2323
def test_standard_1v1():
24-
replay = Replay("test_replays/build17811/1.sc2replay")
24+
replay = Replay("test_replays/build17811/1.SC2Replay")
2525

2626
# assert replay.date == "20 Feb 2011 22:44:48"
2727
assert replay.length == (32, 47)
@@ -89,28 +89,28 @@ def test_standard_1v1():
8989
assert msg.sent_to_all == True
9090

9191
def test_private_category():
92-
replay = Replay("test_replays/build17811/2.sc2replay")
92+
replay = Replay("test_replays/build17811/2.SC2Replay")
9393
assert replay.is_private == True
9494
assert replay.is_ladder == False
9595

9696
def test_2v2():
97-
replay = Replay("test_replays/build17811/7.sc2replay")
97+
replay = Replay("test_replays/build17811/7.SC2Replay")
9898
assert replay.type == "2v2"
9999

100100
def test_3v3():
101-
replay = Replay("test_replays/build17811/3.sc2replay")
101+
replay = Replay("test_replays/build17811/3.SC2Replay")
102102
assert replay.type == "3v3"
103103

104104
# Because it's a 3v3 and all of the members of Team 2 quit, we should know the winner.
105105
assert replay.results[1] == "Won"
106106
assert replay.results[2] == "Lost"
107107

108108
def test_4v4():
109-
replay = Replay("test_replays/build17811/9.sc2replay")
109+
replay = Replay("test_replays/build17811/9.SC2Replay")
110110
assert replay.type == "4v4"
111111

112112
def test_ffa():
113-
replay = Replay("test_replays/build17811/8.sc2replay")
113+
replay = Replay("test_replays/build17811/8.SC2Replay")
114114
assert replay.type == "FFA"
115115

116116
# TODO: Remove me when done!
@@ -125,37 +125,37 @@ def test_ffa():
125125
assert replay.winner_known == True
126126

127127
def test_unknown_winner():
128-
replay = Replay("test_replays/build17811/10.sc2replay")
128+
replay = Replay("test_replays/build17811/10.SC2Replay")
129129

130130
# Recording player (Boom) left second in a 4v4, so the winner shouldn't be known
131131
assert replay.winner_known == False
132132

133133
def test_random_player():
134-
replay = Replay("test_replays/build17811/3.sc2replay")
134+
replay = Replay("test_replays/build17811/3.SC2Replay")
135135

136136
gogeta = replay.player['Gogeta']
137137
assert gogeta.choosen_race == "Random"
138138
assert gogeta.actual_race == "Terran"
139139

140140
def test_random_player2():
141-
replay = Replay("test_replays/build17811/6.sc2replay")
141+
replay = Replay("test_replays/build17811/6.SC2Replay")
142142
permafrost = replay.player["Permafrost"]
143143
assert permafrost.choosen_race == "Random"
144144
assert permafrost.actual_race == "Protoss"
145145

146146
def test_us_realm():
147-
replay = Replay("test_replays/build17811/5.sc2replay")
147+
replay = Replay("test_replays/build17811/5.SC2Replay")
148148
assert replay.player['ShadesofGray'].url == "http://us.battle.net/sc2/en/profile/2358439/1/ShadesofGray/"
149149
assert replay.player['reddawn'].url == "http://us.battle.net/sc2/en/profile/2198663/1/reddawn/"
150150

151151
# We can be really proud: phpsc2replay fails with the messages!
152152
def test_kr_realm_and_tampered_messages():
153-
replay = Replay("test_replays/build17811/11.sc2replay")
153+
replay = Replay("test_replays/build17811/11.SC2Replay")
154154
assert replay.player['명지대학교'].url == "http://kr.battle.net/sc2/en/profile/258945/1/명지대학교/"
155155
assert replay.player['티에스엘사기수'].url == "http://kr.battle.net/sc2/en/profile/102472/1/티에스엘사기수/"
156156

157157
assert replay.messages[0].text == "sc2.replays.net"
158158
assert replay.messages[5].text == "sc2.replays.net"
159159

160160
def test_encrypted():
161-
replay = Replay("test_replays/build17811/4.sc2replay")
161+
replay = Replay("test_replays/build17811/4.SC2Replay")

0 commit comments

Comments
 (0)