aboutsummaryrefslogtreecommitdiff
path: root/tests/__init__.py
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-07-09 09:03:36 +0200
committerWojtek Kosior <koszko@koszko.org>2022-07-09 09:03:36 +0200
commit9f7f7386c7fe49b249f6dd8c558266ce65e407dd (patch)
treecaa07112b88c6d6b044bf3172f7907d1bd65cdd9 /tests/__init__.py
parenta45bb607c2d3900b9151fa0bc45d97f7c28e736b (diff)
downloadimmutables-9f7f7386c7fe49b249f6dd8c558266ce65e407dd.tar.gz
immutables-9f7f7386c7fe49b249f6dd8c558266ce65e407dd.zip
New upstream version 0.18debian-upstream
Diffstat (limited to 'tests/__init__.py')
-rw-r--r--tests/__init__.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/__init__.py b/tests/__init__.py
new file mode 100644
index 0000000..450c573
--- /dev/null
+++ b/tests/__init__.py
@@ -0,0 +1,16 @@
+import os.path
+import sys
+import unittest
+
+
+def suite():
+ test_loader = unittest.TestLoader()
+ test_suite = test_loader.discover(os.path.dirname(__file__),
+ pattern='test_*.py')
+ return test_suite
+
+
+if __name__ == '__main__':
+ runner = unittest.runner.TextTestRunner()
+ result = runner.run(suite())
+ sys.exit(not result.wasSuccessful())