mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 21:18:32 +02:00
Fix create_directory
step
This commit is contained in:
parent
979367abbf
commit
39c2cbdb58
1 changed files with 2 additions and 1 deletions
|
@ -87,7 +87,8 @@ def assert_xml_output_tags(context, expected_tags_json_list):
|
|||
|
||||
@given('we created a directory named "{dir_name}"')
|
||||
def create_directory(context, dir_name):
|
||||
shutil.rmtree(dir_name)
|
||||
if os.path.exists(dir_name):
|
||||
shutil.rmtree(dir_name)
|
||||
os.mkdir(dir_name)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue