Switch to Python unittest
Nose has some inherent problems as it is file-based, so let's switch
to the Python default anyway.
Signed-off-by: martin f. krafft <madduck@madduck.net>
diff --git a/Makefile b/Makefile
index 98ac77b..c3d5aa2 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@
PYFILES = $(shell find -name .git -o -name dist -o -name build -prune -o -name '*.py' -print)
tests:
- python setup.py nosetests
+ python ./run_tests.py
.PHONY: tests
lint:
diff --git a/run_tests.py b/run_tests.py
new file mode 100755
index 0000000..1506945
--- /dev/null
+++ b/run_tests.py
@@ -0,0 +1,12 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# This file is part of reclass (http://github.com/madduck/reclass)
+#
+# Copyright © 2007–13 martin f. krafft <madduck@madduck.net>
+# Released under the terms of the Artistic Licence 2.0
+#
+
+import unittest
+tests = unittest.TestLoader().discover('reclass')
+unittest.TextTestRunner(verbosity=1).run(tests)
diff --git a/setup.py b/setup.py
index 4dd88a4..ebcc4ff 100644
--- a/setup.py
+++ b/setup.py
@@ -26,6 +26,5 @@
'reclass-ansible = reclass.adapters.ansible:cli'
]
},
- install_requires = ['pyyaml'],
- setup_requires = ['nose'],
+ install_requires = ['pyyaml']
)