From ea0af5b6575b66c4d8ec72de0c982a1355a9b606 Mon Sep 17 00:00:00 2001 From: Julien Iguchi-Cartigny Date: Sun, 6 Jul 2014 20:47:24 +0200 Subject: [PATCH] trying new time to tests detected by nose --- tests/test_wstools.py | 5 ++++- tests/test_wstools_net.py | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/test_wstools.py b/tests/test_wstools.py index 7eb58fa..caf7248 100644 --- a/tests/test_wstools.py +++ b/tests/test_wstools.py @@ -13,6 +13,9 @@ def makeTestSuite(): suite.addTest(test_wsdl.makeTestSuite("services_by_file")) return suite -if __name__ == "__main__": +def test_runner(): runner = unittest.TextTestRunner() runner.run(makeTestSuite()) + +if __name__ == '__main__': + test_runner() diff --git a/tests/test_wstools_net.py b/tests/test_wstools_net.py index 9c487fe..f1d7666 100644 --- a/tests/test_wstools_net.py +++ b/tests/test_wstools_net.py @@ -14,8 +14,8 @@ def makeTestSuite(): return suite -def main(): +def test_runner(): unittest.main(defaultTest="makeTestSuite") if __name__ == "__main__": - main() + test_runner()