Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
pet-mit committed Feb 25, 2025
1 parent 81267c9 commit 4bcd5ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 7 additions & 3 deletions src/tests/cucumber/features/environment.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# This file defines behave hooks to run before all tests
import shutil
import os.path
import pathlib
from shutil import rmtree

def before_all(context):
check_userdata_exists(context, "antares-solver")
Expand All @@ -12,5 +14,7 @@ def check_userdata_exists(context, data_name: str):

def after_scenario(context, scenario):
# post-processing a test: clean up output files to avoid taking up all the disk space
if (context.output_path != None):
shutil.rmtree(context.output_path)
if context.output_path != None:
rmtree(context.output_path)
if os.path.exists(os.path.join(context.study_path, "logs")):
rmtree(os.path.join(context.study_path, "logs"))
1 change: 0 additions & 1 deletion src/tests/cucumber/features/steps/common_steps/steps.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Gherkins test steps definitions

import os
import pathlib

from behave import *
from common_steps.assertions import *
Expand Down

0 comments on commit 4bcd5ff

Please sign in to comment.