From df273559776a22d68d53743162e751221ce4c5f4 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Sat, 5 Nov 2016 07:54:16 +0100 Subject: [PATCH] [tests] Add framework for unittests --- runtests.py | 12 ++++++++++++ tests/__init__.py | 0 tests/test_config.py | 10 ++++++++++ 3 files changed, 22 insertions(+) create mode 100755 runtests.py create mode 100644 tests/__init__.py create mode 100644 tests/test_config.py diff --git a/runtests.py b/runtests.py new file mode 100755 index 0000000..f5a2977 --- /dev/null +++ b/runtests.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python + +import unittest + +if __name__ == "__main__": + suite = unittest.TestSuite() + loader = unittest.TestLoader() + suite.addTest(loader.discover("tests/")) + + unittest.TextTestRunner(verbosity=2).run(suite) + +# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_config.py b/tests/test_config.py new file mode 100644 index 0000000..6891eab --- /dev/null +++ b/tests/test_config.py @@ -0,0 +1,10 @@ +import unittest + +import bumblebee.config + +class TestConfigCreation(unittest.TestCase): + def setUp(self): + pass + + +# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4