mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
passes flake8
This commit is contained in:
parent
ff4c0abcf1
commit
d466f8802c
2 changed files with 6 additions and 3 deletions
|
|
@ -21,7 +21,8 @@ from test import _common
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import unittest
|
import unittest
|
||||||
import time
|
import time
|
||||||
from beets.dbcore.query import _parse_periods, DateInterval, DateQuery, InvalidQueryArgumentTypeError
|
from beets.dbcore.query import _parse_periods, DateInterval, DateQuery,\
|
||||||
|
InvalidQueryArgumentTypeError
|
||||||
|
|
||||||
|
|
||||||
def _date(string):
|
def _date(string):
|
||||||
|
|
|
||||||
|
|
@ -893,8 +893,10 @@ class NotQueryTest(DummyDataTestCase):
|
||||||
def test_type_date(self):
|
def test_type_date(self):
|
||||||
q = dbcore.query.DateQuery(u'added', u'2000-01-01')
|
q = dbcore.query.DateQuery(u'added', u'2000-01-01')
|
||||||
not_results = self.lib.items(dbcore.query.NotQuery(q))
|
not_results = self.lib.items(dbcore.query.NotQuery(q))
|
||||||
# query date is in the past, thus the 'not' results should contain all items
|
# query date is in the past, thus the 'not' results should contain all
|
||||||
self.assert_items_matched(not_results, [u'foo bar', u'baz qux', u'beets 4 eva'])
|
# items
|
||||||
|
self.assert_items_matched(not_results, [u'foo bar', u'baz qux',
|
||||||
|
u'beets 4 eva'])
|
||||||
self.assertNegationProperties(q)
|
self.assertNegationProperties(q)
|
||||||
|
|
||||||
def test_type_false(self):
|
def test_type_false(self):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue