Commit 126064b9 authored by Jérome Perrin's avatar Jérome Perrin

get test documents in the same folder as unit test file

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28827 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2d6db3d7
No related merge requests found
...@@ -83,9 +83,8 @@ def printAndLog(msg): ...@@ -83,9 +83,8 @@ def printAndLog(msg):
LOG('Testing... ', 0, msg) LOG('Testing... ', 0, msg)
def makeFilePath(name): def makeFilePath(name):
return os.getenv('INSTANCE_HOME') + '/../Products/ERP5OOo/tests/test_document/' + name return os.path.join(os.path.dirname(__file__), 'test_document', name)
def makeFileUpload(name, as_name=None): def makeFileUpload(name, as_name=None):
if as_name is None: if as_name is None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment