mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
Fixed unit tests import
This commit is contained in:
parent
c59134bdb6
commit
51164024c0
1 changed files with 3 additions and 1 deletions
|
|
@ -54,7 +54,9 @@ class TestInlineRecursion(PluginTestCase):
|
||||||
|
|
||||||
def test_inline_album_expression_uses_items(self):
|
def test_inline_album_expression_uses_items(self):
|
||||||
plugin = InlinePlugin()
|
plugin = InlinePlugin()
|
||||||
func = plugin.compile_inline("len(items)", album=True, field_name="item_count")
|
func = plugin.compile_inline(
|
||||||
|
"len(items)", album=True, field_name="item_count"
|
||||||
|
)
|
||||||
|
|
||||||
album = self.add_album_fixture()
|
album = self.add_album_fixture()
|
||||||
assert func(album) == len(list(album.items()))
|
assert func(album) == len(list(album.items()))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue