diff options
Diffstat (limited to 'test/testlib/helper.py')
-rw-r--r-- | test/testlib/helper.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/test/testlib/helper.py b/test/testlib/helper.py index 19cff8f5..0e3f6bf5 100644 --- a/test/testlib/helper.py +++ b/test/testlib/helper.py @@ -1,10 +1,13 @@ import os -GIT_REPO = os.path.join(os.path.dirname(__file__), "..", "..") +GIT_REPO = os.path.dirname(os.path.dirname(os.path.dirname(__file__))) -def fixture(name): - file = open(os.path.join(os.path.dirname(__file__), "..", "fixtures", name)) - return file.read() +def fixture_path(name): + test_dir = os.path.dirname( os.path.dirname(__file__) ) + return os.path.join(test_dir, "fixtures", name) + +def fixture(name): + return open(fixture_path(name)).read() def absolute_project_path(): - return os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))
\ No newline at end of file + return os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..")) |