From 3b0023e1ac0a04e82969530bf8abbb8bac868188 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alban=20F=C3=A9ron?= Date: Sun, 21 Nov 2021 12:20:48 +0100 Subject: [PATCH] Test tweaks --- tests/api/test_scan.py | 2 +- tests/base/test_watcher.py | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/api/test_scan.py b/tests/api/test_scan.py index 84e3167..63ecc28 100644 --- a/tests/api/test_scan.py +++ b/tests/api/test_scan.py @@ -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) diff --git a/tests/base/test_watcher.py b/tests/base/test_watcher.py index afbe728..d1ff35e 100644 --- a/tests/base/test_watcher.py +++ b/tests/base/test_watcher.py @@ -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()