Update setup and teardown for tests
This commit is contained in:
parent
e9d3c8334e
commit
82951d1dc8
@ -23,6 +23,9 @@ class BaseCurrentPlaylistControllerTest(object):
|
||||
|
||||
assert len(self.uris) >= 3, 'Need at least three urls to run tests.'
|
||||
|
||||
def tearDown(self):
|
||||
self.backend.destroy()
|
||||
|
||||
def test_add(self):
|
||||
for uri in self.uris:
|
||||
self.controller.add(uri)
|
||||
@ -198,6 +201,8 @@ class BasePlaybackControllerTest(object):
|
||||
self.backend = self.backend_class()
|
||||
self.playback = self.backend.playback
|
||||
|
||||
assert len(self.uris) >= 3, 'Need at least three urls to run tests.'
|
||||
|
||||
def tearDown(self):
|
||||
self.backend.destroy()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user