From: Johan D. <jd...@pd...> - 2004-04-21 09:45:57
|
CVS Root: /cvs/gstreamer Module: gst-python Changes by: jdahlin Date: Wed Apr 21 2004 02:45:56 PDT Log message: * testsuite/runtests.py (tests): Run all tests in one TestSuite instead of several. * testsuite/element.py (FakeSinkTest.setUp): Disable StateError tests until there is a way to disable element error output. Modified files: . : ChangeLog testsuite : element.py runtests.py Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/ChangeLog.diff?r1=1.87&r2=1.88 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/testsuite/element.py.diff?r1=1.5&r2=1.6 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/testsuite/runtests.py.diff?r1=1.2&r2=1.3 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-python/ChangeLog,v retrieving revision 1.87 retrieving revision 1.88 diff -u -d -r1.87 -r1.88 --- a/ChangeLog 16 Apr 2004 16:53:28 -0000 1.87 +++ b/ChangeLog 21 Apr 2004 09:45:44 -0000 1.88 @@ -1,3 +1,11 @@ +2004-04-21 Johan Dahlin <jo...@gn...> + + * testsuite/runtests.py (tests): Run all tests in one TestSuite + instead of several. + * testsuite/element.py (FakeSinkTest.setUp): Disable StateError + tests until there is a way to disable element error output. 2004-04-16 Johan Dahlin <jo...@gn...> * configure.ac (PYGTK_CODEGEN): Use built in code generator again Index: element.py RCS file: /cvs/gstreamer/gst-python/testsuite/element.py,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- a/element.py 16 Apr 2004 13:56:39 -0000 1.5 +++ b/element.py 21 Apr 2004 09:45:44 -0000 1.6 @@ -32,7 +32,8 @@ def setUp(self): self.element = gst.Element('fakesink', 'sink') - def testStateError(self): + # Disabled - since it outputs junks + def _testStateError(self): self.element.set_property('state-error', self.FAKESINK_STATE_ERROR_NULL_READY) def error_cb(element, source, error, debug): Index: runtests.py RCS file: /cvs/gstreamer/gst-python/testsuite/runtests.py,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- a/runtests.py 17 Mar 2004 12:41:08 -0000 1.2 +++ b/runtests.py 21 Apr 2004 09:45:44 -0000 1.3 @@ -1,12 +1,12 @@ #!/usr/bin/env python import sys -from unittest import TestLoader, TextTestRunner +from unittest import TestSuite, TestLoader, TextTestRunner from types import ClassType loader = TestLoader() testRunner = TextTestRunner() +test = TestSuite() for name in ('element', 'interface', 'pipeline'): - print 'Testing', name - tests = loader.loadTestsFromName(name) - testRunner.run(tests) + test.addTest(loader.loadTestsFromName(name)) +testRunner.run(tests) |