From a8922a8b76de0532d3228c3c5d42893c8e8034aa Mon Sep 17 00:00:00 2001 From: mediaminister <45148099+mediaminister@users.noreply.github.com> Date: Fri, 4 Oct 2024 19:52:17 +0200 Subject: [PATCH] Fix tests (#1196) --- tests/test_routing.py | 8 ++++---- tests/test_settings.py | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) 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.')