From: Neil Date: Sun, 11 Nov 2012 09:29:21 +0000 (+0200) Subject: Sketch in test suite files (from bzr-email) X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=530daf46eb7d4206c6fd8ffe6a17a0d390108c50;p=bzrirker.git Sketch in test suite files (from bzr-email) --- diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..40b1d6c --- /dev/null +++ b/tests/__init__.py @@ -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 index 0000000..918edd2 --- /dev/null +++ b/tests/testirker.py @@ -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__)