Commit add7d452 authored by Wael Ramadan's avatar Wael Ramadan
Browse files

fix test_creating_bounded_facts

parent 6b4ddb78
Pipeline #5697 passed with stage
in 17 minutes and 22 seconds
......@@ -107,7 +107,8 @@ def test_remove_duplicate_facts_by_span_in_doc(expected_non_duplicate_facts, tes
doc_path="text",
json_doc=None,
analyzers=[],
concat_resources=mlp_wrapper.concat_resources
concat_resources=mlp_wrapper.concat_resources,
error=""
)
output_facts = doc.remove_duplicate_facts_by_span(test_input)
......@@ -141,7 +142,8 @@ def test_bound_close_ones(expected_close_BOUNDS, test_input):
doc_path="text",
json_doc=None,
analyzers=[],
concat_resources=mlp_wrapper.concat_resources
concat_resources=mlp_wrapper.concat_resources,
error=""
)
output_list = doc.bound_close_ones(test_input)
......@@ -174,7 +176,8 @@ def test_remove_overlaping_in_bounded(expected_bounds_no_overlap, test_input):
doc_path="text",
json_doc=None,
analyzers=[],
concat_resources=mlp_wrapper.concat_resources
concat_resources=mlp_wrapper.concat_resources,
error=""
)
bounded_facts = doc.bound_close_ones(test_input)
......@@ -201,7 +204,8 @@ def test_concatenate_subset_bounds(expected_bounds_no_subsets, test_input):
doc_path="text",
json_doc=None,
analyzers=[],
concat_resources=mlp_wrapper.concat_resources
concat_resources=mlp_wrapper.concat_resources,
error=""
)
bounded_facts = doc.bound_close_ones(test_input)
......@@ -227,7 +231,8 @@ def test_concatenate_subset_bounds(key_value_single_pairs, test_input):
doc_path="text",
json_doc=None,
analyzers=[],
concat_resources=mlp_wrapper.concat_resources
concat_resources=mlp_wrapper.concat_resources,
error=""
)
result = doc.key_value_single_pairs(test_input)
......@@ -249,7 +254,8 @@ def test_space_between_ok(mlp, ok_spaces):
doc_path="text",
json_doc=None,
analyzers=[],
concat_resources=mlp_wrapper.concat_resources
concat_resources=mlp_wrapper.concat_resources,
error=""
)
result = doc.space_between_ok(ok_spaces[0], ok_spaces[1], ok_spaces[2])
assert result is True
......@@ -275,7 +281,8 @@ def test_space_between_not_ok(mlp, not_ok_spaces):
doc_path="text",
json_doc=None,
analyzers=[],
concat_resources=mlp_wrapper.concat_resources
concat_resources=mlp_wrapper.concat_resources,
error=""
)
result = doc.space_between_ok(not_ok_spaces[0], not_ok_spaces[1], not_ok_spaces[2])
assert result == False
......@@ -299,7 +306,8 @@ def test_clean_similar_in_strval(similar_cleaned_str_val, test_input):
doc_path="text",
json_doc=None,
analyzers=[],
concat_resources=mlp_wrapper.concat_resources
concat_resources=mlp_wrapper.concat_resources,
error=""
)
result = doc.clean_similar_in_strval(dict(test_input))
assert result.keys() == similar_cleaned_str_val.keys()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment