mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-22 08:56:17 +00:00
Test tweaks
This commit is contained in:
parent
8f5a9a3b73
commit
3b0023e1ac
@ -45,7 +45,7 @@ class ScanWithDaemonTestCase(ApiTestBase):
|
||||
super().tearDown()
|
||||
|
||||
def test_startScan(self):
|
||||
rv, child = self._make_request("startScan", tag="scanStatus")
|
||||
rv, child = self._make_request("startScan", tag="scanStatus", skip_post=True)
|
||||
self.assertEqual(child.get("scanning"), "true")
|
||||
self.assertGreaterEqual(int(child.get("count")), 0)
|
||||
|
||||
|
@ -111,11 +111,10 @@ class AudioWatcherTestCase(WatcherTestCase):
|
||||
self._sleep()
|
||||
self.assertTrackCountEqual(1)
|
||||
|
||||
# This test now fails and I don't understand why
|
||||
# def test_add_nowait_stop(self):
|
||||
# self._addfile()
|
||||
# self._stop()
|
||||
# self.assertTrackCountEqual(1)
|
||||
def test_add_nowait_stop(self):
|
||||
self._addfile()
|
||||
self._stop()
|
||||
self.assertTrackCountEqual(1)
|
||||
|
||||
def test_add_multiple(self):
|
||||
self._addfile()
|
||||
|
Loading…
Reference in New Issue
Block a user