You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gump.apache.org by le...@apache.org on 2005/06/24 00:02:39 UTC
svn commit: r201510 - /gump/branches/Gump3/pygump/python/gump/test/
Author: leosimons
Date: Thu Jun 23 15:02:38 2005
New Revision: 201510
URL: http://svn.apache.org/viewcvs?rev=201510&view=rev
Log:
Get rid of support code for testrunner.py -- no longer needed. Yay!
* pygump/python/gump/test/test*.py: remove the test_suite() methods from these files as well as the running through unittest.main() (which didn't work anyway unless you got a bunch of stuff right). This now works automatically through pylid.
Modified:
gump/branches/Gump3/pygump/python/gump/test/testDynagumper.py
gump/branches/Gump3/pygump/python/gump/test/testEngine.py
gump/branches/Gump3/pygump/python/gump/test/testExample.py
gump/branches/Gump3/pygump/python/gump/test/testMain.py
gump/branches/Gump3/pygump/python/gump/test/testModel.py
gump/branches/Gump3/pygump/python/gump/test/testModeller.py
gump/branches/Gump3/pygump/python/gump/test/testPluginBuilder.py
gump/branches/Gump3/pygump/python/gump/test/testPluginDirBuilder.py
gump/branches/Gump3/pygump/python/gump/test/testUtilExecutor.py
gump/branches/Gump3/pygump/python/gump/test/testUtilIO.py
gump/branches/Gump3/pygump/python/gump/test/testUtilMysql.py
gump/branches/Gump3/pygump/python/gump/test/testWalker.py
Modified: gump/branches/Gump3/pygump/python/gump/test/testDynagumper.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/test/testDynagumper.py?rev=201510&r1=201509&r2=201510&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/test/testDynagumper.py (original)
+++ gump/branches/Gump3/pygump/python/gump/test/testDynagumper.py Thu Jun 23 15:02:38 2005
@@ -63,10 +63,6 @@
self.project.enddate = "22 June 2005"
dynagumper.visit_project(self.project)
-# this is used by testrunner.py to determine what tests to run
-def test_suite():
- return unittest.makeSuite(DynagumperTestCase,'test')
-
# this allows us to run this test by itself from the commandline
if __name__ == '__main__':
unittest.main()
Modified: gump/branches/Gump3/pygump/python/gump/test/testEngine.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/test/testEngine.py?rev=201510&r1=201509&r2=201510&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/test/testEngine.py (original)
+++ gump/branches/Gump3/pygump/python/gump/test/testEngine.py Thu Jun 23 15:02:38 2005
@@ -258,13 +258,3 @@
def verify(self,argument):
TestCase.failUnlessEqual(self.testcase, self.expected, argument)
-
-
-# this is used by testrunner.py to determine what tests to run
-def test_suite():
- # be sure to change the referenceto the TestCase class you create above!
- return unittest.makeSuite(EngineTestCase,'test')
-
-# this allows us to run this test by itself from the commandline
-if __name__ == '__main__':
- unittest.main()
\ No newline at end of file
Modified: gump/branches/Gump3/pygump/python/gump/test/testExample.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/test/testExample.py?rev=201510&r1=201509&r2=201510&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/test/testExample.py (original)
+++ gump/branches/Gump3/pygump/python/gump/test/testExample.py Thu Jun 23 15:02:38 2005
@@ -45,12 +45,3 @@
# to check conditions
self.assert_( True )
self.assertEquals( type({}), type({}) )
-
-# this is used by testrunner.py to determine what tests to run
-def test_suite():
- # be sure to change the referenceto the TestCase class you create above!
- return unittest.makeSuite(ExampleTestCase,'test')
-
-# this allows us to run this test by itself from the commandline
-if __name__ == '__main__':
- unittest.main()
\ No newline at end of file
Modified: gump/branches/Gump3/pygump/python/gump/test/testMain.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/test/testMain.py?rev=201510&r1=201509&r2=201510&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/test/testMain.py (original)
+++ gump/branches/Gump3/pygump/python/gump/test/testMain.py Thu Jun 23 15:02:38 2005
@@ -91,12 +91,3 @@
# don't test main because that would basically be running
# an integration test
-
-# this is used by testrunner.py to determine what tests to run
-def test_suite():
- # be sure to change the referenceto the TestCase class you create above!
- return unittest.makeSuite(MainTestCase,'test')
-
-# this allows us to run this test by itself from the commandline
-if __name__ == '__main__':
- unittest.main()
\ No newline at end of file
Modified: gump/branches/Gump3/pygump/python/gump/test/testModel.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/test/testModel.py?rev=201510&r1=201509&r2=201510&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/test/testModel.py (original)
+++ gump/branches/Gump3/pygump/python/gump/test/testModel.py Thu Jun 23 15:02:38 2005
@@ -579,12 +579,3 @@
self.assertEqual(id,o.id)
o = Jar(p, jar, add_to_bootclass_path=bootclass)
self.assertEqual(bootclass,o.add_to_bootclass_path)
-
-
-# this is used by testrunner.py to determine what tests to run
-def test_suite():
- return unittest.makeSuite(ModelTestCase,'test')
-
-# this allows us to run this test by itself from the commandline
-if __name__ == '__main__':
- unittest.main()
\ No newline at end of file
Modified: gump/branches/Gump3/pygump/python/gump/test/testModeller.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/test/testModeller.py?rev=201510&r1=201509&r2=201510&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/test/testModeller.py (original)
+++ gump/branches/Gump3/pygump/python/gump/test/testModeller.py Thu Jun 23 15:02:38 2005
@@ -218,12 +218,3 @@
def get_as_stream(href):
self.href = href
return StringIO.StringIO()
-
-# this is used by testrunner.py to determine what tests to run
-def test_suite():
- # be sure to change the referenceto the TestCase class you create above!
- return unittest.makeSuite(ModellerTestCase,'test')
-
-# this allows us to run this test by itself from the commandline
-if __name__ == '__main__':
- unittest.main()
\ No newline at end of file
Modified: gump/branches/Gump3/pygump/python/gump/test/testPluginBuilder.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/test/testPluginBuilder.py?rev=201510&r1=201509&r2=201510&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/test/testPluginBuilder.py (original)
+++ gump/branches/Gump3/pygump/python/gump/test/testPluginBuilder.py Thu Jun 23 15:02:38 2005
@@ -75,11 +75,3 @@
self.assertRaises(Error, plugin._do_script, cmd.project, cmd)
finally:
rmtree(basedir)
-
-# this is used by testrunner.py to determine what tests to run
-def test_suite():
- return unittest.makeSuite(BuilderTestCase,'test')
-
-# this allows us to run this test by itself from the commandline
-if __name__ == '__main__':
- unittest.main()
Modified: gump/branches/Gump3/pygump/python/gump/test/testPluginDirBuilder.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/test/testPluginDirBuilder.py?rev=201510&r1=201509&r2=201510&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/test/testPluginDirBuilder.py (original)
+++ gump/branches/Gump3/pygump/python/gump/test/testPluginDirBuilder.py Thu Jun 23 15:02:38 2005
@@ -110,11 +110,3 @@
self.assertRaises(Error, plugin._do_mkdir, cmd.project, cmd.directory)
finally:
rmtree(basedir)
-
-# this is used by testrunner.py to determine what tests to run
-def test_suite():
- return unittest.makeSuite(DirBuilderTestCase,'test')
-
-# this allows us to run this test by itself from the commandline
-if __name__ == '__main__':
- unittest.main()
Modified: gump/branches/Gump3/pygump/python/gump/test/testUtilExecutor.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/test/testUtilExecutor.py?rev=201510&r1=201509&r2=201510&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/test/testUtilExecutor.py (original)
+++ gump/branches/Gump3/pygump/python/gump/test/testUtilExecutor.py Thu Jun 23 15:02:38 2005
@@ -74,11 +74,3 @@
# self.assert_(os.WIFSIGNALED(exitcode), "Process should've been signalled...")
# except:
# pass
-
-# this is used by testrunner.py to determine what tests to run
-def test_suite():
- return unittest.makeSuite(ZZZExecutorUtilTestCase,'test')
-
-# this allows us to run this test by itself from the commandline
-if __name__ == '__main__':
- unittest.main()
\ No newline at end of file
Modified: gump/branches/Gump3/pygump/python/gump/test/testUtilIO.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/test/testUtilIO.py?rev=201510&r1=201509&r2=201510&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/test/testUtilIO.py (original)
+++ gump/branches/Gump3/pygump/python/gump/test/testUtilIO.py Thu Jun 23 15:02:38 2005
@@ -134,12 +134,3 @@
os.rmdir(cache)
except:
pass
-
-# this is used by testrunner.py to determine what tests to run
-def test_suite():
- # be sure to change the referenceto the TestCase class you create above!
- return unittest.makeSuite(IOUtilTestCase,'test')
-
-# this allows us to run this test by itself from the commandline
-if __name__ == '__main__':
- unittest.main()
\ No newline at end of file
Modified: gump/branches/Gump3/pygump/python/gump/test/testUtilMysql.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/test/testUtilMysql.py?rev=201510&r1=201509&r2=201510&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/test/testUtilMysql.py (original)
+++ gump/branches/Gump3/pygump/python/gump/test/testUtilMysql.py Thu Jun 23 15:02:38 2005
@@ -86,13 +86,3 @@
"""
raise
-
-
-# this is used by testrunner.py to determine what tests to run
-def test_suite():
- # be sure to change the referenceto the TestCase class you create above!
- return unittest.makeSuite(MysqlUtilTestCase,'test')
-
-# this allows us to run this test by itself from the commandline
-if __name__ == '__main__':
- unittest.main()
\ No newline at end of file
Modified: gump/branches/Gump3/pygump/python/gump/test/testWalker.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/test/testWalker.py?rev=201510&r1=201509&r2=201510&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/test/testWalker.py (original)
+++ gump/branches/Gump3/pygump/python/gump/test/testWalker.py Thu Jun 23 15:02:38 2005
@@ -134,12 +134,3 @@
self.assertEqual(B,list[2])
self.assertEqual(D,list[3])
self.assertEqual(E,list[4])
-
-# this is used by testrunner.py to determine what tests to run
-def test_suite():
- # be sure to change the referenceto the TestCase class you create above!
- return unittest.makeSuite(WalkerTestCase,'test')
-
-# this allows us to run this test by itself from the commandline
-if __name__ == '__main__':
- unittest.main()
\ No newline at end of file