Skip to content

Commit 628a706

Browse files
committed
Update new profile urls for tests and docs
1 parent 2d47a90 commit 628a706

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/source/tutorials/prettyprinter.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Many of the replay attributes are nested data structures which are generally all
8989
>>> replay.teams[0].players[0].color.hex
9090
'B4141E'
9191
>>> replay.player.name('Remedy').url
92-
'http://us.battle.net/sc2/en/profile/2198663/1/Remedy/'
92+
'https://starcraft2.com/en-us/profile/1/1/2198663'
9393

9494
Each of these nested structures can be found either on its own reference page or lumped together with the other minor structures on the Misc Structures page.
9595

test_replays/test_replays.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ def test_standard_1v1(self):
8080
self.assertEqual(boom.result, "Loss")
8181

8282
self.assertEqual(
83-
emperor.url, "http://eu.battle.net/sc2/en/profile/520049/1/Emperor/"
83+
emperor.url, "https://starcraft2.com/en-us/profile/2/1/520049"
8484
)
8585
self.assertEqual(
86-
boom.url, "http://eu.battle.net/sc2/en/profile/1694745/1/Boom/"
86+
boom.url, "https://starcraft2.com/en-us/profile/2/1/1694745"
8787
)
8888

8989
self.assertEqual(len(replay.messages), 12)
@@ -163,10 +163,10 @@ def test_us_realm(self):
163163
reddawn = [player for player in replay.players if player.name == "reddawn"][0]
164164
self.assertEqual(
165165
shadesofgray.url,
166-
"http://us.battle.net/sc2/en/profile/2358439/1/ShadesofGray/",
166+
"https://starcraft2.com/en-us/profile/1/1/2358439",
167167
)
168168
self.assertEqual(
169-
reddawn.url, "http://us.battle.net/sc2/en/profile/2198663/1/reddawn/"
169+
reddawn.url, "https://starcraft2.com/en-us/profile/1/1/2198663"
170170
)
171171

172172
def test_kr_realm_and_tampered_messages(self):
@@ -179,10 +179,10 @@ def test_kr_realm_and_tampered_messages(self):
179179
first = [player for player in replay.players if player.name == "명지대학교"][0]
180180
second = [player for player in replay.players if player.name == "티에스엘사기수"][0]
181181
self.assertEqual(
182-
first.url, "http://kr.battle.net/sc2/en/profile/258945/1/명지대학교/"
182+
first.url, "https://starcraft2.com/en-us/profile/3/1/258945"
183183
)
184184
self.assertEqual(
185-
second.url, "http://kr.battle.net/sc2/en/profile/102472/1/티에스엘사기수/"
185+
second.url, "https://starcraft2.com/en-us/profile/3/1/102472"
186186
)
187187
self.assertEqual(replay.messages[0].text, "sc2.replays.net")
188188
self.assertEqual(replay.messages[5].text, "sc2.replays.net")

0 commit comments

Comments
 (0)