1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-22 08:56: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.
# 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.
@ -9,7 +9,6 @@ import unittest
import sys
from flask import current_app
from pony.orm import db_session
from supysonic.db import Track
from supysonic.managers.folder import FolderManager
@ -22,13 +21,12 @@ class TranscodingTestCase(ApiTestBase):
def setUp(self):
super().setUp()
with db_session:
FolderManager.add("Folder", "tests/assets/folder")
scanner = Scanner()
scanner.queue_folder("Folder")
scanner.run()
FolderManager.add("Folder", "tests/assets/folder")
scanner = Scanner()
scanner.queue_folder("Folder")
scanner.run()
self.trackid = Track.get().id
self.trackid = Track.get().id
def _stream(self, **kwargs):
kwargs.update(