1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-09 19:52:16 +00:00

Test tweaks

This commit is contained in:
Alban Féron 2021-11-21 12:20:48 +01:00
parent 8f5a9a3b73
commit 3b0023e1ac
No known key found for this signature in database
GPG Key ID: 8CE0313646D16165
2 changed files with 5 additions and 6 deletions

View File

@ -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)

View File

@ -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()