tests: Stop using tracklist add tracks in mpd status test
This commit is contained in:
parent
7d42d028c6
commit
79b0584887
@ -11,11 +11,13 @@ class StatusHandlerTest(protocol.BaseTestCase):
|
||||
self.assertEqualResponse('ACK [0@0] {clearerror} Not implemented')
|
||||
|
||||
def test_currentsong(self):
|
||||
track = Track()
|
||||
self.core.tracklist.add([track])
|
||||
track = Track(uri='dummy:/a')
|
||||
self.backend.library.dummy_library = [track]
|
||||
self.core.tracklist.add(uris=[track.uri]).get()
|
||||
|
||||
self.core.playback.play()
|
||||
self.send_request('currentsong')
|
||||
self.assertInResponse('file: ')
|
||||
self.assertInResponse('file: dummy:/a')
|
||||
self.assertInResponse('Time: 0')
|
||||
self.assertInResponse('Artist: ')
|
||||
self.assertInResponse('Title: ')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user