Skip to content

Commit

Permalink
Fix tests (#1196)
Browse files Browse the repository at this point in the history
  • Loading branch information
mediaminister authored Oct 4, 2024
1 parent 44c4839 commit a8922a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/test_routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/<program>/<title>"""
"""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"""
Expand Down
1 change: 0 additions & 1 deletion tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
Expand Down

0 comments on commit a8922a8

Please sign in to comment.