From 154e6cfca8378e7be9c81d45262a14a3e81d1b68 Mon Sep 17 00:00:00 2001 From: Zsin Skri Date: Sun, 1 Jul 2018 09:19:36 +0200 Subject: [PATCH] improve tests prefer_specific without canonical This improves the tests for the changes introduced in commit cef9a331 LastGenre: allow prefer_specific without canonical. --- test/test_lastgenre.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_lastgenre.py b/test/test_lastgenre.py index b2d1bb51f..a8e6318b7 100644 --- a/test/test_lastgenre.py +++ b/test/test_lastgenre.py @@ -146,12 +146,12 @@ class LastGenrePluginTest(unittest.TestCase, TestHelper): self.assertNotEqual(self.plugin.c14n_branches, []) def test_prefer_specific_without_canonical(self): - """When prefer_specific is enabled but canonical is not the - tree still has to be loaded. + """Prefer_specific works without canonical. """ - self._setup_config(prefer_specific=True, canonical=False) - self.assertEqual(self.plugin._resolve_genres(['delta blues']), - u'Delta Blues') + self._setup_config(prefer_specific=True, canonical=False, count=4) + self.assertEqual(self.plugin._resolve_genres( + ['math rock', 'post-rock']), + u'Post-Rock, Math Rock') def test_no_duplicate(self): """Remove duplicated genres.