1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-09 19:52:16 +00:00

Moving Last.fm test out of the main suite

This commit is contained in:
Alban Féron 2019-07-14 14:49:57 +02:00
parent ec31ba6ff7
commit 3070f39e4f
No known key found for this signature in database
GPG Key ID: 8CE0313646D16165
3 changed files with 22 additions and 3 deletions

View File

@ -9,5 +9,5 @@ install:
- pip install -r travis-requirements.txt
script:
- coverage run setup.py test
- coverage run -a setup.py test --test-suite tests.api.test_lyrics
- coverage run -a setup.py test --test-suite tests.with_net
after_script: codecov

View File

@ -13,7 +13,6 @@ from .test_cli import CLITestCase
from .test_cache import CacheTestCase
from .test_config import ConfigTestCase
from .test_db import DbTestCase
from .test_lastfm import LastFmTestCase
from .test_scanner import ScannerTestCase
from .test_secret import SecretTestCase
from .test_watcher import suite as watcher_suite
@ -28,7 +27,6 @@ def suite():
suite.addTest(unittest.makeSuite(ScannerTestCase))
suite.addTest(watcher_suite())
suite.addTest(unittest.makeSuite(CLITestCase))
suite.addTest(unittest.makeSuite(LastFmTestCase))
suite.addTest(unittest.makeSuite(SecretTestCase))
return suite

21
tests/with_net.py Normal file
View File

@ -0,0 +1,21 @@
# coding: utf-8
#
# This file is part of Supysonic.
# Supysonic is a Python implementation of the Subsonic server API.
#
# Copyright (C) 2019 Alban 'spl0k' Féron
#
# Distributed under terms of the GNU AGPLv3 license.
import unittest
from .api.test_lyrics import LyricsTestCase
from .base.test_lastfm import LastFmTestCase
def suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(LastFmTestCase))
suite.addTest(unittest.makeSuite(LyricsTestCase))
return suite