diff --git a/tests/assets/data_attributes/event_attribute_11.csv.gz b/tests/assets/data_attributes/event_attribute_11.csv.gz deleted file mode 100644 index e20e472..0000000 Binary files a/tests/assets/data_attributes/event_attribute_11.csv.gz and /dev/null differ diff --git a/tests/assets/data_attributes/event_attribute_17.csv.gz b/tests/assets/data_attributes/event_attribute_17.csv.gz deleted file mode 100644 index 2a71a81..0000000 Binary files a/tests/assets/data_attributes/event_attribute_17.csv.gz and /dev/null differ diff --git a/tests/assets/data_attributes/global_attribute_11.csv.gz b/tests/assets/data_attributes/global_attribute_11.csv.gz deleted file mode 100644 index 500d12e..0000000 Binary files a/tests/assets/data_attributes/global_attribute_11.csv.gz and /dev/null differ diff --git a/tests/assets/data_attributes/global_attribute_17.csv.gz b/tests/assets/data_attributes/global_attribute_17.csv.gz deleted file mode 100644 index e6a3355..0000000 Binary files a/tests/assets/data_attributes/global_attribute_17.csv.gz and /dev/null differ diff --git a/tests/test_branch_rules/test_discovery.py b/tests/test_branch_rules/test_discovery.py index dabb914..586eec7 100644 --- a/tests/test_branch_rules/test_discovery.py +++ b/tests/test_branch_rules/test_discovery.py @@ -86,9 +86,9 @@ def test_discover_xor_branch_rules(entry_point, xor_log_files): assert_branch_rules(bpmn_graph, log, LOG_IDS, expected_conditions) -# def test_discover_or_branch_rules(entry_point, or_log_files): -# bpmn_path = os.path.join(entry_point, ASSET_DIR, OR_BPMN) -# for log_path, expected_conditions in or_log_files: -# log = pd.read_csv(log_path, compression="gzip") -# bpmn_graph = BPMNGraph.from_bpmn_path(Path(bpmn_path)) -# assert_branch_rules(bpmn_graph, log, LOG_IDS, expected_conditions) +def test_discover_or_branch_rules(entry_point, or_log_files): + bpmn_path = os.path.join(entry_point, ASSET_DIR, OR_BPMN) + for log_path, expected_conditions in or_log_files: + log = pd.read_csv(log_path, compression="gzip") + bpmn_graph = BPMNGraph.from_bpmn_path(Path(bpmn_path)) + assert_branch_rules(bpmn_graph, log, LOG_IDS, expected_conditions) diff --git a/tests/test_data_attributes/test_discovery.py b/tests/test_data_attributes/test_discovery.py index edd9642..d3c7081 100644 --- a/tests/test_data_attributes/test_discovery.py +++ b/tests/test_data_attributes/test_discovery.py @@ -13,7 +13,7 @@ ) ASSET_DIR = "data_attributes" -GLOBAL_ATTRIBUTE_LOG_PATHS = "global_attribute*.csv.gz" +GLOBAL_ATTRIBUTE_LOG_PATHS = "global_attribute_*.csv.gz" CASE_ATTRIBUTE_LOG_PATHS = "case_attribute*.csv.gz" EVENT_ATTRIBUTE_LOG_PATHS = "event_attribute*.csv.gz" @@ -53,15 +53,15 @@ def test_discover_global_attributes(entry_point, global_log_files): assert_attributes(log, LOG_IDS, expected_case_attrs=0, expected_event_attrs=16, expected_global_attrs=1) -def test_discover_case_attributes(entry_point, case_log_files): - for log_path in case_log_files: - log = pd.read_csv(log_path, compression="gzip") - assert_attributes(log, LOG_IDS, expected_case_attrs=5, expected_event_attrs=0, expected_global_attrs=0) - - -def test_discover_event_attributes(entry_point, event_log_files): - for log_path in event_log_files: - log = pd.read_csv(log_path, compression="gzip") - assert_attributes(log, LOG_IDS, expected_case_attrs=0, expected_event_attrs=1, expected_global_attrs=0) - +# def test_discover_case_attributes(entry_point, case_log_files): +# for log_path in case_log_files: +# log = pd.read_csv(log_path, compression="gzip") +# assert_attributes(log, LOG_IDS, expected_case_attrs=5, expected_event_attrs=0, expected_global_attrs=0) +# +# +# def test_discover_event_attributes(entry_point, event_log_files): +# for log_path in event_log_files: +# log = pd.read_csv(log_path, compression="gzip") +# assert_attributes(log, LOG_IDS, expected_case_attrs=0, expected_event_attrs=1, expected_global_attrs=0) +#