Skip to content

Commit

Permalink
Add raw data check
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefanie08 committed Jun 5, 2024
1 parent 9189269 commit 1541b0c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_pipeline_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
file_name_extension,
clean_file,
rule_test,
remove_raw_data_created,
check_raw_data_exists,
)


Expand Down Expand Up @@ -70,6 +72,9 @@ def output_rule_set(scenario):


def test_pipeline_folders(delete_switch, scenarios):
# Raw data is needed for some rules and therefore is created if missing
raw_data_exists = check_raw_data_exists()

# Get output rule set from scenario
for scenario in scenarios:
output_rule_list = output_rule_set(scenario)
Expand Down Expand Up @@ -128,6 +133,9 @@ def test_pipeline_folders(delete_switch, scenarios):
f"{sublist}"
)

# Remove raw data if it has been created. It is needed as input data for the tests
remove_raw_data_created(raw_data_exists)


def test_pipeline_results():
test_pipeline_folders(delete_switch, scenarios)

0 comments on commit 1541b0c

Please sign in to comment.