mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 13:36:14 +02:00
Tests for multiple journals
This commit is contained in:
parent
f9bdc13210
commit
4b9b5e827b
6 changed files with 86 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue