From 2058f3a99cc635b9e18e8586541249d7d676050b Mon Sep 17 00:00:00 2001 From: epikem Date: Tue, 13 Feb 2018 04:39:29 +0900 Subject: [PATCH] Move test import to RunTest class --- tests/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/__init__.py b/tests/__init__.py index 43f0722..2a4a114 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -8,8 +8,6 @@ import unittest2 as unittest except ImportError: import unittest -from tests import maintest -from tests import deprecationtest class RunTests(Command): @@ -30,8 +28,9 @@ def run(self): print('╰─────────────────────────────────────╯') else: print('Test Start') - import tests - testSuite = unittest.TestSuite(tests.testsuite()) + from tests import maintest + from tests import deprecationtest + testSuite = unittest.TestSuite(testsuite()) runner = unittest.TextTestRunner(verbosity=2) results = runner.run(testSuite) sys.exit(0 if results.wasSuccessful() else 1)