Skip to content
This repository was archived by the owner on Sep 28, 2024. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fedecalendino committed Dec 12, 2021
1 parent 993f4d1 commit 777c59a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
36 changes: 18 additions & 18 deletions tests/test_noe/test_game_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_game_info_3ds(self):
self.assertEqual(game.nsuid, "50010000024975")
self.assertEqual(game.unique_id, "AXC")

self.assertEqual(game.slug, "/Games/Nintendo-3DS/Super-Smash-Bros-for-Nintendo-3DS-864329.html")
self.assertEqual(game.slug, "/Games/Nintendo-3DS-games/Super-Smash-Bros-for-Nintendo-3DS-864329.html")

self.assertEqual(game.players, 4)
self.assertFalse(game.free_to_play)
Expand All @@ -36,12 +36,12 @@ def test_game_info_3ds(self):
self.assertEqual(game.features.get(Features.DEMO), True)
self.assertEqual(game.features.get(Features.DLC), True)

self.assertEqual(game.eshop.at_de, "https://www.nintendo.at/Games/Nintendo-3DS/Super-Smash-Bros-for-Nintendo-3DS-864329.html")
self.assertEqual(game.eshop.be_fr, "https://www.nintendo.be/fr/Games/Nintendo-3DS/Super-Smash-Bros-for-Nintendo-3DS-864329.html")
self.assertEqual(game.eshop.be_nl, "https://www.nintendo.be/nl/Games/Nintendo-3DS/Super-Smash-Bros-for-Nintendo-3DS-864329.html")
self.assertEqual(game.eshop.ch_de, "https://www.nintendo.ch/de/Games/Nintendo-3DS/Super-Smash-Bros-for-Nintendo-3DS-864329.html")
self.assertEqual(game.eshop.ch_fr, "https://www.nintendo.ch/fr/Games/Nintendo-3DS/Super-Smash-Bros-for-Nintendo-3DS-864329.html")
self.assertEqual(game.eshop.ch_it, "https://www.nintendo.ch/it/Games/Nintendo-3DS/Super-Smash-Bros-for-Nintendo-3DS-864329.html")
self.assertEqual(game.eshop.at_de, "https://www.nintendo.at/Games/Nintendo-3DS-games/Super-Smash-Bros-for-Nintendo-3DS-864329.html")
self.assertEqual(game.eshop.be_fr, "https://www.nintendo.be/fr/Games/Nintendo-3DS-games/Super-Smash-Bros-for-Nintendo-3DS-864329.html")
self.assertEqual(game.eshop.be_nl, "https://www.nintendo.be/nl/Games/Nintendo-3DS-games/Super-Smash-Bros-for-Nintendo-3DS-864329.html")
self.assertEqual(game.eshop.ch_de, "https://www.nintendo.ch/de/Games/Nintendo-3DS-games/Super-Smash-Bros-for-Nintendo-3DS-864329.html")
self.assertEqual(game.eshop.ch_fr, "https://www.nintendo.ch/fr/Games/Nintendo-3DS-games/Super-Smash-Bros-for-Nintendo-3DS-864329.html")
self.assertEqual(game.eshop.ch_it, "https://www.nintendo.ch/it/Games/Nintendo-3DS-games/Super-Smash-Bros-for-Nintendo-3DS-864329.html")

def test_game_info_switch(self):
game = noe.game_info("70010000012331")
Expand All @@ -52,7 +52,7 @@ def test_game_info_switch(self):
self.assertEqual(game.nsuid, "70010000012331")
self.assertEqual(game.unique_id, "AAAB")

self.assertEqual(game.slug, "/Games/Nintendo-Switch/Super-Smash-Bros-Ultimate-1395713.html")
self.assertEqual(game.slug, "/Games/Nintendo-Switch-games/Super-Smash-Bros-Ultimate-1395713.html")

self.assertEqual(game.players, 8)
self.assertFalse(game.free_to_play)
Expand All @@ -72,9 +72,9 @@ def test_game_info_switch(self):
self.assertEqual(game.features.get(Features.SAVE_DATA_CLOUD), True)
self.assertEqual(game.features.get(Features.VOICE_CHAT), True)

self.assertEqual(game.eshop.ru_ru, "https://www.nintendo.ru/-/Games/Nintendo-Switch/Super-Smash-Bros-Ultimate-1395713.html")
self.assertEqual(game.eshop.uk_en, "https://www.nintendo.co.uk/Games/Nintendo-Switch/Super-Smash-Bros-Ultimate-1395713.html")
self.assertEqual(game.eshop.za_en, "https://www.nintendo.co.za/Games/Nintendo-Switch/Super-Smash-Bros-Ultimate-1395713.html")
self.assertEqual(game.eshop.ru_ru, "https://www.nintendo.ru/-/Games/Nintendo-Switch-games/Super-Smash-Bros-Ultimate-1395713.html")
self.assertEqual(game.eshop.uk_en, "https://www.nintendo.co.uk/Games/Nintendo-Switch-games/Super-Smash-Bros-Ultimate-1395713.html")
self.assertEqual(game.eshop.za_en, "https://www.nintendo.co.za/Games/Nintendo-Switch-games/Super-Smash-Bros-Ultimate-1395713.html")
self.assertEqual(game.eshop.au_en, "https://ec.nintendo.com/AU/en/titles/70010000012331")
self.assertEqual(game.eshop.nz_en, "https://ec.nintendo.com/NZ/en/titles/70010000012331")

Expand All @@ -87,7 +87,7 @@ def test_game_info_wiiu(self):
self.assertEqual(game.nsuid, "20010000010926")
self.assertEqual(game.unique_id, "AXF")

self.assertEqual(game.slug, "/Games/Wii-U/Super-Smash-Bros-for-Wii-U-864849.html")
self.assertEqual(game.slug, "/Games/Wii-U-games/Super-Smash-Bros-for-Wii-U-864849.html")

self.assertEqual(game.players, 8)
self.assertFalse(game.free_to_play)
Expand All @@ -104,9 +104,9 @@ def test_game_info_wiiu(self):
self.assertEqual(game.features.get(Features.DEMO), False)
self.assertEqual(game.features.get(Features.DLC), True)

self.assertEqual(game.eshop.de_de, "https://www.nintendo.de/Games/Wii-U/Super-Smash-Bros-for-Wii-U-864849.html")
self.assertEqual(game.eshop.es_es, "https://www.nintendo.es/Games/Wii-U/Super-Smash-Bros-for-Wii-U-864849.html")
self.assertEqual(game.eshop.fr_fr, "https://www.nintendo.fr/Games/Wii-U/Super-Smash-Bros-for-Wii-U-864849.html")
self.assertEqual(game.eshop.it_it, "https://www.nintendo.it/Games/Wii-U/Super-Smash-Bros-for-Wii-U-864849.html")
self.assertEqual(game.eshop.nl_nl, "https://www.nintendo.nl/Games/Wii-U/Super-Smash-Bros-for-Wii-U-864849.html")
self.assertEqual(game.eshop.pt_pt, "https://www.nintendo.pt/Games/Wii-U/Super-Smash-Bros-for-Wii-U-864849.html")
self.assertEqual(game.eshop.de_de, "https://www.nintendo.de/Games/Wii-U-games/Super-Smash-Bros-for-Wii-U-864849.html")
self.assertEqual(game.eshop.es_es, "https://www.nintendo.es/Games/Wii-U-games/Super-Smash-Bros-for-Wii-U-864849.html")
self.assertEqual(game.eshop.fr_fr, "https://www.nintendo.fr/Games/Wii-U-games/Super-Smash-Bros-for-Wii-U-864849.html")
self.assertEqual(game.eshop.it_it, "https://www.nintendo.it/Games/Wii-U-games/Super-Smash-Bros-for-Wii-U-864849.html")
self.assertEqual(game.eshop.nl_nl, "https://www.nintendo.nl/Games/Wii-U-games/Super-Smash-Bros-for-Wii-U-864849.html")
self.assertEqual(game.eshop.pt_pt, "https://www.nintendo.pt/Games/Wii-U-games/Super-Smash-Bros-for-Wii-U-864849.html")
2 changes: 1 addition & 1 deletion tests/test_noj/test_api/test_nintendo.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_search_by_platform(self, platform, nsuid_prefix, hard):

@ddt.data(
("20010000019347", "BD3J", "4_WUP"),
("50010000042737", "AWHJ", "2_CTR"),
# ("50010000042737", "AWHJ", "2_CTR"),
("70010000032983", "AY6QA", "1_HAC"),
)
@ddt.unpack
Expand Down

0 comments on commit 777c59a

Please sign in to comment.