Debian Codegraph @

test/ui/commands/test_fields.py

raw
1 from beets import library
2 from beets.test.helper import IOMixin, ItemInDBTestCase
3
4
5 class FieldsTest(IOMixin, ItemInDBTestCase):
6 def test_fields_func(self):
7 items = library.Item.all_keys()
8 albums = library.Album.all_keys()
9
10 output = set(self.run_with_output("fields").split())
11 items -= output
12 albums -= output
13
14 assert len(items) == 0
15 assert len(albums) == 0