summaryrefslogtreecommitdiff
path: root/test/helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/helper.py')
-rw-r--r--test/helper.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/helper.py b/test/helper.py
new file mode 100644
index 00000000..082e57e5
--- /dev/null
+++ b/test/helper.py
@@ -0,0 +1,10 @@
+import os
+
+GIT_REPO = os.path.join(os.path.dirname(__file__), "..")
+
+def fixture(name):
+ file = open(os.path.join(os.path.dirname(__file__), "fixtures", name))
+ return file.read()
+
+def absolute_project_path():
+ return os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) \ No newline at end of file