]> gitweb.michael.orlitzky.com - dunshire.git/blobdiff - src/test/suite.py
Add setup.py and reorganize everything to make its "test" command happy.
[dunshire.git] / src / test / suite.py
diff --git a/src/test/suite.py b/src/test/suite.py
deleted file mode 100644 (file)
index e10c38d..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-"""
-The whole test suite.
-
-This module compiles the doctests and unittests from the rest of the
-codebase into one big TestSuite() and the runs it.
-"""
-
-from unittest import TestLoader, TestSuite, TextTestRunner
-from doctest import DocTestSuite
-
-from dunshire import cones
-from dunshire import errors
-from dunshire import matrices
-from dunshire import games
-from test import symmetric_linear_game_test
-
-def run_suite():
-    """
-    Run all of the unit and doctests for the ``dunshire`` and ``test``
-    packages.
-    """
-    suite = TestSuite()
-    suite.addTest(DocTestSuite(cones))
-    suite.addTest(DocTestSuite(errors))
-    suite.addTest(DocTestSuite(matrices))
-    suite.addTest(DocTestSuite(games))
-    suite.addTest(DocTestSuite(symmetric_linear_game_test))
-    slg_tests = TestLoader().loadTestsFromModule(symmetric_linear_game_test)
-    suite.addTest(slg_tests)
-    runner = TextTestRunner(verbosity=1)
-    runner.run(suite)
-
-if __name__ == '__main__':
-    run_suite()