use TEMP path constant

This commit is contained in:
2014-11-21 15:49:01 +01:00
parent 61062737e0
commit 5ab6bb7db3

View File

@@ -363,8 +363,8 @@ def server(mode='testing', debug=False):
# TODO(fsiddi): turn these values in variables
project = Project(
name=PROJECT_NAME,
repository_path="/tmp/bam_test/remote_store/svn_checkout",
upload_path="/tmp/bam_test/remote_store/upload",
repository_path=os.path.join(TEMP_LOCAL, "remote_store/svn_checkout"),
upload_path=os.path.join(TEMP_LOCAL, "remote_store/upload"),
status="active",
)
db.session.add(project)
@@ -732,7 +732,6 @@ class BamDeleteTest(BamSessionTestCase):
# parse the response searching for the file. If it fails it means the file has
# not been removed
listing = json.loads(stdout)
print(listing)
for e in listing:
self.assertNotEqual(e[0], file_name)