Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mediaminister committed Nov 14, 2019
1 parent bbfeba6 commit 0aa6f56
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 8 deletions.
3 changes: 2 additions & 1 deletion test/test_apihelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

from __future__ import absolute_import, division, print_function, unicode_literals
import unittest
from addon import kodi
from apihelper import ApiHelper
from data import CHANNELS
from favorites import Favorites
from kodiwrapper import KodiWrapper
from resumepoints import ResumePoints
from xbmcextra import kodi_to_ansi

Expand All @@ -21,6 +21,7 @@

class ApiHelperTests(unittest.TestCase):

kodi = KodiWrapper(globals())
_favorites = Favorites(kodi)
_resumepoints = ResumePoints(kodi)
_apihelper = ApiHelper(kodi, _favorites, _resumepoints)
Expand Down
3 changes: 2 additions & 1 deletion test/test_favorites.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
from __future__ import absolute_import, division, print_function, unicode_literals
import unittest
from random import shuffle
from addon import kodi
from apihelper import ApiHelper
from favorites import Favorites
from kodiwrapper import KodiWrapper
from resumepoints import ResumePoints

xbmc = __import__('xbmc')
Expand All @@ -24,6 +24,7 @@

class TestFavorites(unittest.TestCase):

kodi = KodiWrapper(globals())
_favorites = Favorites(kodi)
_resumepoints = ResumePoints(kodi)
_apihelper = ApiHelper(kodi, _favorites, _resumepoints)
Expand Down
3 changes: 2 additions & 1 deletion test/test_resumepoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

from __future__ import absolute_import, division, print_function, unicode_literals
import unittest
from addon import kodi
from apihelper import ApiHelper
from favorites import Favorites
from kodiwrapper import KodiWrapper
from resumepoints import ResumePoints

xbmc = __import__('xbmc')
Expand All @@ -23,6 +23,7 @@

class TestResumePoints(unittest.TestCase):

kodi = KodiWrapper(globals())
_favorites = Favorites(kodi)
_resumepoints = ResumePoints(kodi)
_apihelper = ApiHelper(kodi, _favorites, _resumepoints)
Expand Down
3 changes: 2 additions & 1 deletion test/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

from __future__ import absolute_import, division, print_function, unicode_literals
import unittest
from addon import kodi
from apihelper import ApiHelper
from favorites import Favorites
from kodiwrapper import KodiWrapper
from resumepoints import ResumePoints

xbmc = __import__('xbmc')
Expand All @@ -20,6 +20,7 @@

class TestSearch(unittest.TestCase):

kodi = KodiWrapper(globals())
_favorites = Favorites(kodi)
_resumepoints = ResumePoints(kodi)
_apihelper = ApiHelper(kodi, _favorites, _resumepoints)
Expand Down
3 changes: 2 additions & 1 deletion test/test_streamservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
except ImportError:
from urllib2 import HTTPError

from addon import kodi
from data import CHANNELS
from kodiwrapper import KodiWrapper
from streamservice import StreamService
from tokenresolver import TokenResolver

Expand All @@ -34,6 +34,7 @@

class StreamServiceTests(unittest.TestCase):

kodi = KodiWrapper(globals())
_tokenresolver = TokenResolver(kodi)
_streamservice = StreamService(kodi, _tokenresolver)

Expand Down
3 changes: 2 additions & 1 deletion test/test_tokenresolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from __future__ import absolute_import, division, print_function, unicode_literals
import unittest
from addon import kodi
from kodiwrapper import KodiWrapper
from tokenresolver import TokenResolver

xbmc = __import__('xbmc')
Expand All @@ -17,6 +17,7 @@

class TokenResolverTests(unittest.TestCase):

kodi = KodiWrapper(globals())
_tokenresolver = TokenResolver(kodi)

def test_refresh_login(self):
Expand Down
3 changes: 2 additions & 1 deletion test/test_tvguide.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import dateutil.tz
from xbmcextra import kodi_to_ansi, uri_to_path

from addon import kodi
from kodiwrapper import KodiWrapper
from tvguide import TVGuide

xbmc = __import__('xbmc')
Expand All @@ -25,6 +25,7 @@

class TestTVGuide(unittest.TestCase):

kodi = KodiWrapper(globals())
_tvguide = TVGuide(kodi)

def test_tvguide_date_menu(self):
Expand Down
3 changes: 2 additions & 1 deletion test/test_vrtplayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
from __future__ import absolute_import, division, print_function, unicode_literals
import random
import unittest
from addon import kodi
from apihelper import ApiHelper
from data import CATEGORIES
from favorites import Favorites
from kodiwrapper import KodiWrapper
from resumepoints import ResumePoints
from vrtplayer import VRTPlayer

Expand All @@ -22,6 +22,7 @@

class TestVRTPlayer(unittest.TestCase):

kodi = KodiWrapper(globals())
_favorites = Favorites(kodi)
_resumepoints = ResumePoints(kodi)
_apihelper = ApiHelper(kodi, _favorites, _resumepoints)
Expand Down

0 comments on commit 0aa6f56

Please sign in to comment.