summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker/test/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openshift_health_checker/test/conftest.py')
-rw-r--r--roles/openshift_health_checker/test/conftest.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/openshift_health_checker/test/conftest.py b/roles/openshift_health_checker/test/conftest.py
new file mode 100644
index 000000000..244a1f0fa
--- /dev/null
+++ b/roles/openshift_health_checker/test/conftest.py
@@ -0,0 +1,12 @@
+import os
+import sys
+
+# extend sys.path so that tests can import openshift_checks and action plugins
+# from this role.
+openshift_health_checker_path = os.path.dirname(os.path.dirname(__file__))
+sys.path[1:1] = [
+ openshift_health_checker_path,
+ os.path.join(openshift_health_checker_path, 'action_plugins'),
+ os.path.join(openshift_health_checker_path, 'callback_plugins'),
+ os.path.join(openshift_health_checker_path, 'library'),
+]