1
0
Fork 0

Update tests:

- Yakuza 0 had Denuvo removed
 - Google now ranks Microsoft store higher than Steam for 'Farming Simulator 17 Platinum Edition'.
This commit is contained in:
Casper V. Kristensen 2019-05-10 00:44:56 +02:00
parent 26fca8373b
commit d24bbf9cf6
Signed by: caspervk
GPG key ID: 289CA03790535054

View file

@ -141,11 +141,11 @@ class ParseDirnameTestCase(unittest.TestCase):
self.assertEqual(["MULTI.7", "RIP"], p.tags) self.assertEqual(["MULTI.7", "RIP"], p.tags)
def test_steam_package(self): def test_steam_package(self):
pre = Pre("Farming.Simulator.17.Platinum.Edition.Update.v1.5.3-BAT", "nfo_link", datetime.now()) pre = Pre("Anno.2070.Complete.Edition-FAKE", "nfo_link", datetime.now())
p = parsing.parse_pre(pre) p = parsing.parse_pre(pre)
self.assertEqual("Farming Simulator 17 - Platinum Edition", p.game_name) self.assertEqual("Anno 2070 Complete Edition", p.game_name)
self.assertEqual(ReleaseType.UPDATE, p.type) self.assertGreaterEqual(9354, p.num_reviews) # make sure we got the right game in the package
self.assertIn("store.steampowered.com/sub/202103", p.store_links["Steam"]) self.assertIn("store.steampowered.com/sub/26683", p.store_links["Steam"])
def test_steam_package_with_dlc_first(self): def test_steam_package_with_dlc_first(self):
pre = Pre("The.Witcher.3.Wild.Hunt.Game.of.The.Year.Edition-RELOADED", "nfo_link", datetime.now()) pre = Pre("The.Witcher.3.Wild.Hunt.Game.of.The.Year.Edition-RELOADED", "nfo_link", datetime.now())
@ -169,7 +169,7 @@ class ParseDirnameTestCase(unittest.TestCase):
self.assertEqual(["DENUVO"], p.highlights) self.assertEqual(["DENUVO"], p.highlights)
def test_denuvo_in_steam_drm_notice(self): def test_denuvo_in_steam_drm_notice(self):
pre = Pre("Yakuza.0-FAKE", "nfo_link", datetime.now()) pre = Pre("Batman.Arkham.Knight-CPY", "nfo_link", datetime.now())
p = parsing.parse_pre(pre) p = parsing.parse_pre(pre)
self.assertEqual(["DENUVO"], p.highlights) self.assertEqual(["DENUVO"], p.highlights)