summaryrefslogtreecommitdiff
path: root/test/testlib/helper.py
blob: 19cff8f5d9dcf38c3bf1ba5d45ff815cfb5c379b (plain)
1
2
3
4
5
6
7
8
9
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__), "..", ".."))