diff --git a/tests/test_pipeline_results.py b/tests/test_pipeline_results.py index 7376e06a..1a45b915 100644 --- a/tests/test_pipeline_results.py +++ b/tests/test_pipeline_results.py @@ -9,6 +9,8 @@ file_name_extension, clean_file, rule_test, + remove_raw_data_created, + check_raw_data_exists, ) @@ -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) @@ -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)