mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-22 17:06:17 +00:00
A bit of sorting
This commit is contained in:
parent
ea8d2baa14
commit
fa4b1eca84
@ -11,20 +11,18 @@
|
|||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from .test_db import DbTestCase
|
import base
|
||||||
|
import managers
|
||||||
|
|
||||||
from .test_manager_folder import FolderManagerTestCase
|
|
||||||
from .test_manager_user import UserManagerTestCase
|
|
||||||
from .test_api import ApiTestCase
|
from .test_api import ApiTestCase
|
||||||
from .test_frontend import FrontendTestCase
|
from .test_frontend import FrontendTestCase
|
||||||
|
|
||||||
def suite():
|
def suite():
|
||||||
suite = unittest.TestSuite()
|
suite = unittest.TestSuite()
|
||||||
|
|
||||||
suite.addTest(unittest.makeSuite(DbTestCase))
|
suite.addTest(base.suite())
|
||||||
|
|
||||||
suite.addTest(unittest.makeSuite(FolderManagerTestCase))
|
suite.addTest(managers.suite())
|
||||||
suite.addTest(unittest.makeSuite(UserManagerTestCase))
|
|
||||||
suite.addTest(unittest.makeSuite(ApiTestCase))
|
suite.addTest(unittest.makeSuite(ApiTestCase))
|
||||||
suite.addTest(unittest.makeSuite(FrontendTestCase))
|
suite.addTest(unittest.makeSuite(FrontendTestCase))
|
||||||
|
|
||||||
|
21
tests/base/__init__.py
Normal file
21
tests/base/__init__.py
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# vim:fenc=utf-8
|
||||||
|
#
|
||||||
|
# This file is part of Supysonic.
|
||||||
|
# Supysonic is a Python implementation of the Subsonic server API.
|
||||||
|
#
|
||||||
|
# Copyright (C) 2017 Alban 'spl0k' Féron
|
||||||
|
#
|
||||||
|
# Distributed under terms of the GNU AGPLv3 license.
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from .test_db import DbTestCase
|
||||||
|
|
||||||
|
def suite():
|
||||||
|
suite = unittest.TestSuite()
|
||||||
|
|
||||||
|
suite.addTest(unittest.makeSuite(DbTestCase))
|
||||||
|
|
||||||
|
return suite
|
||||||
|
|
24
tests/managers/__init__.py
Normal file
24
tests/managers/__init__.py
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# vim:fenc=utf-8
|
||||||
|
#
|
||||||
|
# This file is part of Supysonic.
|
||||||
|
# Supysonic is a Python implementation of the Subsonic server API.
|
||||||
|
#
|
||||||
|
# Copyright (C) 2017 Alban 'spl0k' Féron
|
||||||
|
# 2017 Óscar García Amor
|
||||||
|
#
|
||||||
|
# Distributed under terms of the GNU AGPLv3 license.
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from .test_manager_folder import FolderManagerTestCase
|
||||||
|
from .test_manager_user import UserManagerTestCase
|
||||||
|
|
||||||
|
def suite():
|
||||||
|
suite = unittest.TestSuite()
|
||||||
|
|
||||||
|
suite.addTest(unittest.makeSuite(FolderManagerTestCase))
|
||||||
|
suite.addTest(unittest.makeSuite(UserManagerTestCase))
|
||||||
|
|
||||||
|
return suite
|
||||||
|
|
Loading…
Reference in New Issue
Block a user