mirror of
https://github.com/beetbox/beets.git
synced 2026-02-16 12:24:53 +01:00
Fix test failures
This commit is contained in:
parent
a4249af700
commit
1c87da2c05
2 changed files with 6 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue