From 531c090da963ae195c17444b83769d2ba956fbe5 Mon Sep 17 00:00:00 2001 From: Nick Steel Date: Thu, 31 Jan 2019 21:56:42 +0000 Subject: [PATCH] test: Skips scanner tags test when there's no mp3 support. The file order returned by .find is not deterministic which made testing the first scanner result fail when it happened to be an unsupported media format (e.g. mp3). --- tests/audio/test_scan.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/audio/test_scan.py b/tests/audio/test_scan.py index 411ce805..8761f68a 100644 --- a/tests/audio/test_scan.py +++ b/tests/audio/test_scan.py @@ -45,6 +45,9 @@ class ScannerTest(unittest.TestCase): def test_tags_is_set(self): self.scan(self.find('scanner/simple')) + + self.check_if_missing_plugin() + self.assert_(self.result.values()[0].tags) def test_errors_is_not_set(self):