diff options
author | Michael Trier <mtrier@gmail.com> | 2008-05-07 22:37:17 -0400 |
---|---|---|
committer | Michael Trier <mtrier@gmail.com> | 2008-05-07 22:37:17 -0400 |
commit | 9066712dca21ef35c534e068f2cc4fefdccf1ea3 (patch) | |
tree | 10e04737320fdab63f749bf91260f0d91cec9d36 /test/testlib/helper.py | |
parent | 933d23bf95a5bd1624fbcdf328d904e1fa173474 (diff) | |
download | gitpython-9066712dca21ef35c534e068f2cc4fefdccf1ea3.tar.gz |
Moved test stuff around and modified imports to just clean things up a bit.
Diffstat (limited to 'test/testlib/helper.py')
-rw-r--r-- | test/testlib/helper.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/testlib/helper.py b/test/testlib/helper.py new file mode 100644 index 00000000..19cff8f5 --- /dev/null +++ b/test/testlib/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 |