From 3070f39e4fef03a70d3f8f4af6ab707ba170ff75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alban=20F=C3=A9ron?= Date: Sun, 14 Jul 2019 14:49:57 +0200 Subject: [PATCH] Moving Last.fm test out of the main suite --- .travis.yml | 2 +- tests/base/__init__.py | 2 -- tests/with_net.py | 21 +++++++++++++++++++++ 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 tests/with_net.py diff --git a/.travis.yml b/.travis.yml index b821c25..419756d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/tests/base/__init__.py b/tests/base/__init__.py index c1f3612..3a67717 100644 --- a/tests/base/__init__.py +++ b/tests/base/__init__.py @@ -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 diff --git a/tests/with_net.py b/tests/with_net.py new file mode 100644 index 0000000..438e8a6 --- /dev/null +++ b/tests/with_net.py @@ -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