Skip to content
Snippets Groups Projects
Commit 10561098 authored by I. Nüske's avatar I. Nüske
Browse files

TST: test_read_xlsx..test_error_table now fails if boolean is not parsed correctly

parent 92644ba4
No related branches found
No related tags found
2 merge requests!128MNT: Added a warning when column metadata is not configured, and a better...,!123Parse binary or formula boolean values
Pipeline #58048 passed
...@@ -143,12 +143,7 @@ def test_error_table(): ...@@ -143,12 +143,7 @@ def test_error_table():
assert str(caught.value).count("Malformed metadata: Cannot parse paths in worksheet") == 1 assert str(caught.value).count("Malformed metadata: Cannot parse paths in worksheet") == 1
assert str(caught.value).count("There is no entry in the schema") == 1 assert str(caught.value).count("There is no entry in the schema") == 1
assert str(caught.value).count("is not one of") == 1 assert str(caught.value).count("is not one of") == 1
# FIXME ToDo: Remove when boolean is fixed / when everything works as assert str(caught.value).count("is not of type") == 4
# expected, set correct number.
if "is not of type 'boolean'" in str(caught.value):
assert str(caught.value).count("is not of type") == 6
else:
assert str(caught.value).count("is not of type") == 4
# Check correct error message for completely unknown path # Check correct error message for completely unknown path
with pytest.raises(jsonschema.ValidationError) as caught: with pytest.raises(jsonschema.ValidationError) as caught:
convert.to_dict(xlsx=rfp("data/simple_data_broken_paths.xlsx"), convert.to_dict(xlsx=rfp("data/simple_data_broken_paths.xlsx"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment