[tests] Add framework for unittests
This commit is contained in:
parent
9da9fdaaa5
commit
df27355977
3 changed files with 22 additions and 0 deletions
12
runtests.py
Executable file
12
runtests.py
Executable file
|
@ -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
|
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
10
tests/test_config.py
Normal file
10
tests/test_config.py
Normal file
|
@ -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
|
Loading…
Reference in a new issue