Fix test failures

This commit is contained in:
Šarūnas Nejus 2026-01-15 21:11:16 +00:00
parent a4249af700
commit 1c87da2c05
No known key found for this signature in database
2 changed files with 6 additions and 3 deletions

View file

@ -454,7 +454,9 @@ def test_custom_words(
assert ftintitle.contains_feat(given, custom_words) is expected
def test_album_template_value():
def test_album_template_value(config):
config["ftintitle"]["custom_words"] = []
album = Album()
album["albumartist"] = "Foo ft. Bar"
assert ftintitle._album_artist_no_feat(album) == "Foo"

View file

@ -71,11 +71,11 @@ class TestPluginTestCase(PluginTestCase):
plugin = "test"
def setUp(self):
self.config["pluginpath"] = [_common.PLUGINPATH]
super().setUp()
config["pluginpath"] = [_common.PLUGINPATH]
class ConfigTest(TestPluginTestCase):
class ConfigTest(IOMixin, TestPluginTestCase):
def setUp(self):
super().setUp()
@ -162,6 +162,7 @@ class ConfigTest(TestPluginTestCase):
with self.write_config_file() as config:
config.write("library: /xxx/yyy/not/a/real/path")
self.io.addinput("n")
with pytest.raises(ui.UserError):
self.run_command("test", lib=None)