mirror of
https://github.com/beetbox/beets.git
synced 2025-12-21 16:13:38 +01:00
lint
This commit is contained in:
parent
7f469eea54
commit
80a10c7e4e
2 changed files with 3 additions and 4 deletions
|
|
@ -19,9 +19,9 @@ import sys
|
|||
import unittest
|
||||
from contextlib import contextmanager
|
||||
from functools import partial
|
||||
from mock import patch
|
||||
|
||||
import pytest
|
||||
from mock import patch
|
||||
|
||||
import beets.library
|
||||
from beets import dbcore, util
|
||||
|
|
@ -31,7 +31,6 @@ from beets.dbcore.query import (
|
|||
NoneQuery,
|
||||
ParsingError,
|
||||
)
|
||||
from beets.library import Item
|
||||
from beets.test import _common
|
||||
from beets.test.helper import BeetsTestCase, ItemInDBTestCase
|
||||
from beets.util import syspath
|
||||
|
|
|
|||
|
|
@ -15,10 +15,11 @@
|
|||
"""Various tests for querying the library database."""
|
||||
|
||||
from mock import patch
|
||||
|
||||
import beets.library
|
||||
from beets import config, dbcore
|
||||
from beets.dbcore import types
|
||||
from beets.library import Album, Item
|
||||
from beets.library import Album
|
||||
from beets.test import _common
|
||||
from beets.test.helper import BeetsTestCase
|
||||
|
||||
|
|
@ -502,7 +503,6 @@ class NonExistingFieldTest(DummyDataTestCase):
|
|||
def test_field_present_in_some_items(self):
|
||||
"""Test ordering by a (string) field not present on all items."""
|
||||
# append 'foo' to two items (1,2)
|
||||
items = self.lib.items("id+")
|
||||
lower_foo_item, higher_foo_item, *items_without_foo = self.lib.items(
|
||||
"id+"
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue