1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-10 04:02:17 +00:00

Fix transcoding tests

This commit is contained in:
Alban Féron 2022-12-30 16:44:09 +01:00
parent dd2ef2ffeb
commit 42283817fe
No known key found for this signature in database
GPG Key ID: 8CE0313646D16165

View File

@ -1,7 +1,7 @@
# This file is part of Supysonic. # This file is part of Supysonic.
# Supysonic is a Python implementation of the Subsonic server API. # Supysonic is a Python implementation of the Subsonic server API.
# #
# Copyright (C) 2017-2020 Alban 'spl0k' Féron # Copyright (C) 2017-2022 Alban 'spl0k' Féron
# #
# Distributed under terms of the GNU AGPLv3 license. # Distributed under terms of the GNU AGPLv3 license.
@ -9,7 +9,6 @@ import unittest
import sys import sys
from flask import current_app from flask import current_app
from pony.orm import db_session
from supysonic.db import Track from supysonic.db import Track
from supysonic.managers.folder import FolderManager from supysonic.managers.folder import FolderManager
@ -22,7 +21,6 @@ class TranscodingTestCase(ApiTestBase):
def setUp(self): def setUp(self):
super().setUp() super().setUp()
with db_session:
FolderManager.add("Folder", "tests/assets/folder") FolderManager.add("Folder", "tests/assets/folder")
scanner = Scanner() scanner = Scanner()
scanner.queue_folder("Folder") scanner.queue_folder("Folder")