mirror of
https://github.com/beetbox/beets.git
synced 2025-12-31 21:12:43 +01:00
ignoring unused return values
This commit is contained in:
parent
c63db558e9
commit
f46cc7d131
1 changed files with 4 additions and 4 deletions
|
|
@ -52,19 +52,19 @@ class QueryTest(_common.TestCase):
|
|||
|
||||
def test_query_empty(self):
|
||||
with self.assertRaises(ui.UserError):
|
||||
items, albums = commands._do_query(self.lib, (), False)
|
||||
commands._do_query(self.lib, (), False)
|
||||
|
||||
def test_query_empty_album(self):
|
||||
with self.assertRaises(ui.UserError):
|
||||
items, albums = commands._do_query(self.lib, (), True)
|
||||
commands._do_query(self.lib, (), True)
|
||||
|
||||
def test_query_item(self):
|
||||
item, itempath = self.add_item()
|
||||
self.add_item()
|
||||
items, albums = commands._do_query(self.lib, (), False)
|
||||
self.assertEqual(len(albums), 0)
|
||||
self.assertEqual(len(items), 1)
|
||||
|
||||
item, itempath = self.add_item()
|
||||
self.add_item()
|
||||
items, albums = commands._do_query(self.lib, (), False)
|
||||
self.assertEqual(len(albums), 0)
|
||||
self.assertEqual(len(items), 2)
|
||||
|
|
|
|||
Loading…
Reference in a new issue