aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/TestsRunner.py7
-rw-r--r--test/__init__.py0
2 files changed, 6 insertions, 1 deletions
diff --git a/test/TestsRunner.py b/test/TestsRunner.py
index 68449f9..351dbbc 100755
--- a/test/TestsRunner.py
+++ b/test/TestsRunner.py
@@ -40,7 +40,7 @@ from buffer import TestBuffer
from encoding import TestEncodings
-if __name__ == '__main__':
+def run_unit_tests():
# Instantiate a test suite containing all the test cases
suite = unittest.TestSuite()
suite.addTest(unittest.defaultTestLoader.loadTestsFromTestCase(ReadMetadataTestCase))
@@ -55,3 +55,8 @@ if __name__ == '__main__':
suite.addTest(unittest.defaultTestLoader.loadTestsFromTestCase(TestEncodings))
# Run the test suite
unittest.TextTestRunner(verbosity=2).run(suite)
+
+
+if __name__ == '__main__':
+ run_unit_tests()
+
diff --git a/test/__init__.py b/test/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/__init__.py