mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
Aaargh! Forgot to run lint again
Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
This commit is contained in:
parent
f19faae1dc
commit
ab2e858bce
1 changed files with 6 additions and 4 deletions
|
|
@ -41,7 +41,8 @@ class WebPluginTest(_common.LibTestCase):
|
||||||
self.lib.add(Album(album=u'album',
|
self.lib.add(Album(album=u'album',
|
||||||
albumtest='xyz'))
|
albumtest='xyz'))
|
||||||
self.lib.add(Album(album=u'other album',
|
self.lib.add(Album(album=u'other album',
|
||||||
artpath=os.sep + os.path.join('somewhere-else', 'art_path_2')))
|
artpath=os.sep
|
||||||
|
+ os.path.join('somewhere2', 'art_path_2')))
|
||||||
|
|
||||||
web.app.config['TESTING'] = True
|
web.app.config['TESTING'] = True
|
||||||
web.app.config['lib'] = self.lib
|
web.app.config['lib'] = self.lib
|
||||||
|
|
@ -64,7 +65,8 @@ class WebPluginTest(_common.LibTestCase):
|
||||||
res_json = json.loads(response.data.decode('utf-8'))
|
res_json = json.loads(response.data.decode('utf-8'))
|
||||||
|
|
||||||
self.assertEqual(response.status_code, 200)
|
self.assertEqual(response.status_code, 200)
|
||||||
self.assertEqual(res_json['artpath'], os.path.join(os.sep, u'somewhere-else', u'art_path_2'))
|
self.assertEqual(res_json['artpath'],
|
||||||
|
os.path.join(os.sep, u'somewhere2', u'art_path_2'))
|
||||||
|
|
||||||
web.app.config['INCLUDE_PATHS'] = False
|
web.app.config['INCLUDE_PATHS'] = False
|
||||||
|
|
||||||
|
|
@ -180,8 +182,8 @@ class WebPluginTest(_common.LibTestCase):
|
||||||
def test_query_item_path(self):
|
def test_query_item_path(self):
|
||||||
# """ testing item query: path:\somewhere """
|
# """ testing item query: path:\somewhere """
|
||||||
""" Note: path queries are special: the query item must match the path
|
""" Note: path queries are special: the query item must match the path
|
||||||
from the root all the way to a directory, so this matches just 1 item """
|
from the root all the way to a directory, so this matches 1 item """
|
||||||
""" Note: filesystem separators in the query must be specified as '\' """
|
""" Note: filesystem separators in the query must be '\' """
|
||||||
response = self.client.get('/item/query/path:\\somewhere\\a')
|
response = self.client.get('/item/query/path:\\somewhere\\a')
|
||||||
res_json = json.loads(response.data.decode('utf-8'))
|
res_json = json.loads(response.data.decode('utf-8'))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue