Skip to content

Commit

Permalink
tests: Update to work with Mopidy 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jodal committed Aug 12, 2015
1 parent 5424504 commit 5c246ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions tests/test_player_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ def setUp(self):
objects.MprisObject._connect_to_dbus = mock.Mock()
self.backend = dummy_backend.create_proxy()
self.mixer = dummy_mixer.create_proxy()
config = {'core': {'max_tracklist_length': 10000}}
self.core = core.Core.start(
backends=[self.backend], mixer=self.mixer).proxy()
self.mpris = objects.MprisObject(config={}, core=self.core)
config=config, backends=[self.backend], mixer=self.mixer).proxy()
self.mpris = objects.MprisObject(config=config, core=self.core)

def tearDown(self):
pykka.ActorRegistry.stop_all()
Expand Down
4 changes: 3 additions & 1 deletion tests/test_playlist_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ class PlayerInterfaceTest(unittest.TestCase):
def setUp(self):
objects.MprisObject._connect_to_dbus = mock.Mock()
self.backend = dummy_backend.create_proxy()
self.core = core.Core.start(backends=[self.backend]).proxy()
config = {'core': {'max_tracklist_length': 10000}}
self.core = core.Core.start(
config=config, backends=[self.backend]).proxy()
self.mpris = objects.MprisObject(config={}, core=self.core)

foo = self.core.playlists.create('foo').get()
Expand Down

0 comments on commit 5c246ce

Please sign in to comment.