Sketch in test suite files (from bzr-email)
authorNeil <neil@dip.sun.ac.za>
Sun, 11 Nov 2012 09:29:21 +0000 (11:29 +0200)
committerNeil <neil@dip.sun.ac.za>
Sun, 11 Nov 2012 09:29:21 +0000 (11:29 +0200)
tests/__init__.py [new file with mode: 0644]
tests/testirker.py [new file with mode: 0644]

diff --git a/tests/__init__.py b/tests/__init__.py
new file mode 100644 (file)
index 0000000..40b1d6c
--- /dev/null
@@ -0,0 +1,15 @@
+# -*- coding: utf-8 -*-
+# vim:fileencoding=utf-8 ai ts=4 sts=4 et sw=4
+# Copyright 2012 Neil Muller
+# GPL 2+ - see COPYING for details
+
+from unittest import TestLoader, TestSuite
+
+
+def test_suite():
+    result = TestSuite()
+    import testirker
+
+    loader = TestLoader()
+    result.addTests(loader.loadTestsFromModule(testirker))
+    return result
diff --git a/tests/testirker.py b/tests/testirker.py
new file mode 100644 (file)
index 0000000..918edd2
--- /dev/null
@@ -0,0 +1,17 @@
+# -*- coding: utf-8 -*-
+# vim:fileencoding=utf-8 ai ts=4 sts=4 et sw=4
+# Copyright 2012 Neil Muller
+# GPL 2+ - see COPYING for details
+from unittest import TestLoader
+
+from bzrlib import (
+    config,
+    tests,
+    )
+from bzrlib.bzrdir import BzrDir
+from bzrlib.tests import TestCaseInTempDir
+from bzrlib.plugins.irker.irkerhook import IrkerSender
+
+
+def test_suite():
+    return TestLoader().loadTestsFromName(__name__)