diff --git a/test/test_web.py b/test/test_web.py index 528cbf36d..a4c10a193 100644 --- a/test/test_web.py +++ b/test/test_web.py @@ -41,7 +41,8 @@ class WebPluginTest(_common.LibTestCase): self.lib.add(Album(album=u'album', albumtest='xyz')) 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['lib'] = self.lib @@ -64,7 +65,8 @@ class WebPluginTest(_common.LibTestCase): res_json = json.loads(response.data.decode('utf-8')) 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 @@ -180,8 +182,8 @@ class WebPluginTest(_common.LibTestCase): def test_query_item_path(self): # """ testing item query: path:\somewhere """ """ 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 """ - """ Note: filesystem separators in the query must be specified as '\' """ + from the root all the way to a directory, so this matches 1 item """ + """ Note: filesystem separators in the query must be '\' """ response = self.client.get('/item/query/path:\\somewhere\\a') res_json = json.loads(response.data.decode('utf-8'))