[geneagrapher] 20/226: Changes in how to run tests.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sat Jul 11 17:10:33 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository geneagrapher.

commit b149761c9493a545435608776b818fe7c850cc53
Author: David Alber <alber.david at gmail.com>
Date:   Sun Sep 14 00:17:36 2008 +0000

    Changes in how to run tests.
---
 tests/tests.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tests/tests.py b/tests/tests.py
index 3daf629..987339f 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -442,11 +442,14 @@ class TestGeneagrapherMethods(unittest.TestCase):
         self.ggrapher.parseInput()
         self.assertRaises(AttributeError, self.ggrapher.buildGraph)
 
-if __name__ == '__main__':
+def runTests():
     suite = unittest.TestSuite()
     suite.addTest(unittest.makeSuite(TestRecordMethods))
     suite.addTest(unittest.makeSuite(TestNodeMethods))
     suite.addTest(unittest.makeSuite(TestGraphMethods))
-    #suite.addTest(unittest.makeSuite(TestGrabberMethods))
+    suite.addTest(unittest.makeSuite(TestGrabberMethods))
     suite.addTest(unittest.makeSuite(TestGeneagrapherMethods))
     unittest.TextTestRunner(verbosity=1).run(suite)
+
+if __name__ == '__main__':
+    runTests()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/geneagrapher.git



More information about the debian-science-commits mailing list