From cf048dd8e93a56ef663d242a717990ea26c350c1 Mon Sep 17 00:00:00 2001 From: Julien Iguchi-Cartigny Date: Sun, 6 Jul 2014 20:11:16 +0200 Subject: [PATCH] make test_wstools detected by nose --- tests/test_wstools.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/tests/test_wstools.py b/tests/test_wstools.py index e98a61f..7eb58fa 100644 --- a/tests/test_wstools.py +++ b/tests/test_wstools.py @@ -8,19 +8,11 @@ import unittest import test_wsdl - -SECTION = 'files' -CONFIG_FILE = 'config.txt' - - def makeTestSuite(): suite = unittest.TestSuite() suite.addTest(test_wsdl.makeTestSuite("services_by_file")) return suite - -def main(): - unittest.main(defaultTest="makeTestSuite") - if __name__ == "__main__": - main() + runner = unittest.TextTestRunner() + runner.run(makeTestSuite())