mirror of
https://github.com/beetbox/beets.git
synced 2025-12-08 09:34:23 +01:00
numeric query tests
This commit is contained in:
parent
048880011f
commit
bbac4ba109
1 changed files with 10 additions and 0 deletions
|
|
@ -305,6 +305,16 @@ class MemoryGetTest(unittest.TestCase, AssertsMixin):
|
||||||
results = self.lib.items(q)
|
results = self.lib.items(q)
|
||||||
self.assert_matched(results, [u'caf\xe9'])
|
self.assert_matched(results, [u'caf\xe9'])
|
||||||
|
|
||||||
|
def test_numeric_search_positive(self):
|
||||||
|
q = beets.library.NumericQuery('year', '1')
|
||||||
|
results = self.lib.items(q)
|
||||||
|
self.assertTrue(results)
|
||||||
|
|
||||||
|
def test_numeric_search_negative(self):
|
||||||
|
q = beets.library.NumericQuery('year', '10')
|
||||||
|
results = self.lib.items(q)
|
||||||
|
self.assertFalse(results)
|
||||||
|
|
||||||
class MatchTest(unittest.TestCase):
|
class MatchTest(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.item = _common.item()
|
self.item = _common.item()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue