Browse Source

trying new time to tests detected by nose

main
Julien Iguchi-Cartigny 10 years ago
parent
commit
ea0af5b657
2 changed files with 6 additions and 3 deletions
  1. +4
    -1
      tests/test_wstools.py
  2. +2
    -2
      tests/test_wstools_net.py

+ 4
- 1
tests/test_wstools.py View File

@@ -13,6 +13,9 @@ def makeTestSuite():
suite.addTest(test_wsdl.makeTestSuite("services_by_file")) suite.addTest(test_wsdl.makeTestSuite("services_by_file"))
return suite return suite


if __name__ == "__main__":
def test_runner():
runner = unittest.TextTestRunner() runner = unittest.TextTestRunner()
runner.run(makeTestSuite()) runner.run(makeTestSuite())

if __name__ == '__main__':
test_runner()

+ 2
- 2
tests/test_wstools_net.py View File

@@ -14,8 +14,8 @@ def makeTestSuite():
return suite return suite




def main():
def test_runner():
unittest.main(defaultTest="makeTestSuite") unittest.main(defaultTest="makeTestSuite")


if __name__ == "__main__": if __name__ == "__main__":
main()
test_runner()

Loading…
Cancel
Save