use TEMP path constant

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

View File

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