From 530daf46eb7d4206c6fd8ffe6a17a0d390108c50 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 11 Nov 2012 11:29:21 +0200 Subject: [PATCH] Sketch in test suite files (from bzr-email) --- tests/__init__.py | 15 +++++++++++++++ tests/testirker.py | 17 +++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 tests/__init__.py create mode 100644 tests/testirker.py 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__) -- 2.34.1