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
Next Next commit
Update new profile urls for tests and docs
  • Loading branch information
HADB committed Dec 1, 2021
commit 628a70615fb2a6c4805938a4a33e2fa2d4d51a73
2 changes: 1 addition & 1 deletion docs/source/tutorials/prettyprinter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Many of the replay attributes are nested data structures which are generally all
>>> replay.teams[0].players[0].color.hex
'B4141E'
>>> replay.player.name('Remedy').url
'http://us.battle.net/sc2/en/profile/2198663/1/Remedy/'
'https://starcraft2.com/en-us/profile/1/1/2198663'

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.

Expand Down
12 changes: 6 additions & 6 deletions test_replays/test_replays.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ def test_standard_1v1(self):
self.assertEqual(boom.result, "Loss")

self.assertEqual(
emperor.url, "http://eu.battle.net/sc2/en/profile/520049/1/Emperor/"
emperor.url, "https://starcraft2.com/en-us/profile/2/1/520049"
)
self.assertEqual(
boom.url, "http://eu.battle.net/sc2/en/profile/1694745/1/Boom/"
boom.url, "https://starcraft2.com/en-us/profile/2/1/1694745"
)

self.assertEqual(len(replay.messages), 12)
Expand Down Expand Up @@ -163,10 +163,10 @@ def test_us_realm(self):
reddawn = [player for player in replay.players if player.name == "reddawn"][0]
self.assertEqual(
shadesofgray.url,
"http://us.battle.net/sc2/en/profile/2358439/1/ShadesofGray/",
"https://starcraft2.com/en-us/profile/1/1/2358439",
)
self.assertEqual(
reddawn.url, "http://us.battle.net/sc2/en/profile/2198663/1/reddawn/"
reddawn.url, "https://starcraft2.com/en-us/profile/1/1/2198663"
)

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