diff --git a/tests/test_routing.py b/tests/test_routing.py index e9b3ef7d..492b6bd0 100644 --- a/tests/test_routing.py +++ b/tests/test_routing.py @@ -183,16 +183,16 @@ def test_search_menu(self): @unittest.skipUnless(xbmc_addon.settings.get('username'), 'Skipping as VRT username is missing.') @unittest.skipUnless(xbmc_addon.settings.get('password'), 'Skipping as VRT password is missing.') def test_follow_route(self): - """Follow method: /follow//""" + """Follow method: /follow/<program_id>/<program_title>""" addon.run(['plugin://plugin.video.vrt.nu/follow/1459955889901/Thuis', '0', '']) self.assertEqual(plugin.url_for(addon.follow, program_id='1459955889901', program_title='Thuis'), 'plugin://plugin.video.vrt.nu/follow/1459955889901/Thuis') @unittest.skipUnless(xbmc_addon.settings.get('username'), 'Skipping as VRT username is missing.') @unittest.skipUnless(xbmc_addon.settings.get('password'), 'Skipping as VRT password is missing.') def test_unfollow_route(self): - """Unfollow method: /unfollow/<program>/<title>""" - addon.run(['plugin://plugin.video.vrt.nu/unfollow/thuis/Thuis', '0', '']) - self.assertEqual(plugin.url_for(addon.unfollow, program_id='1459955889901', program_title='Thuis'), 'plugin://plugin.video.vrt.nu/unfollow/thuis/Thuis') + """Unfollow method: /unfollow/<program_id>/<program_title>""" + addon.run(['plugin://plugin.video.vrt.nu/unfollow/1459955889901/Thuis', '0', '']) + self.assertEqual(plugin.url_for(addon.unfollow, program_id='1459955889901', program_title='Thuis'), 'plugin://plugin.video.vrt.nu/unfollow/1459955889901/Thuis') def test_clear_cookies_route(self): """Delete tokens method: /tokens/delete""" diff --git a/tests/test_settings.py b/tests/test_settings.py index ddab0644..7fbac94b 100644 --- a/tests/test_settings.py +++ b/tests/test_settings.py @@ -72,7 +72,6 @@ def test_favorites_disabled(): plugin.run(['plugin://plugin.video.vrt.nu/favorites', '0', '']) plugin.run(['plugin://plugin.video.vrt.nu/favorites/recent', '0', '']) plugin.run(['plugin://plugin.video.vrt.nu/favorites/offline', '0', '']) - plugin.run(['plugin://plugin.video.vrt.nu/favorites/manage', '0', '']) @staticmethod @unittest.skipUnless(addon.settings.get('username'), 'Skipping as VRT username is missing.')