Tests for multiple journals

This commit is contained in:
Manuel Ebert 2013-07-22 10:11:37 +02:00
parent f9bdc13210
commit 4b9b5e827b
6 changed files with 86 additions and 3 deletions

View file

@ -17,6 +17,8 @@ def after_scenario(context, scenario):
for folder in ("configs", "journals"):
original = os.path.join("features", folder)
backup = os.path.join("features", folder+"_backup")
for filename in os.listdir(original):
os.remove(os.path.join(original, filename))
for filename in os.listdir(backup):
shutil.copy2(os.path.join(backup, filename), original)
shutil.rmtree(backup)