[Pkg-bazaar-commits] ./bzr-gtk/unstable r140: add framework for tests.
Jelmer Vernooij
jelmer at samba.org
Fri Apr 10 07:45:45 UTC 2009
------------------------------------------------------------
revno: 140
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Thu 2007-02-01 16:50:40 +0100
message:
add framework for tests.
added:
tests/
tests/__init__.py
modified:
__init__.py
-------------- next part --------------
=== modified file '__init__.py'
--- a/__init__.py 2007-01-31 00:11:01 +0000
+++ b/__init__.py 2007-02-01 15:50:40 +0000
@@ -316,4 +316,10 @@
def __str__(self):
return "No DISPLAY. Unable to run GTK+ application."
+def test_suite():
+ from unittest import TestSuite
+ import tests
+ result = TestSuite()
+ result.addTest(tests.test_suite())
+ return result
=== added directory 'tests'
=== added file 'tests/__init__.py'
--- a/tests/__init__.py 1970-01-01 00:00:00 +0000
+++ b/tests/__init__.py 2007-02-01 15:50:40 +0000
@@ -0,0 +1,24 @@
+# Copyright (C) 2007 Jelmer Venrooij <jelmer at samba.org>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+from unittest import TestLoader, TestSuite
+
+def test_suite():
+ result = TestSuite()
+
+ loader = TestLoader()
+ return result
+
More information about the Pkg-bazaar-commits
mailing list