From 1056109870169a2d4e029a1c07d40bdc358082d7 Mon Sep 17 00:00:00 2001
From: "i.nueske" <i.nueske@indiscale.com>
Date: Sat, 23 Nov 2024 15:41:10 +0100
Subject: [PATCH] TST: test_read_xlsx..test_error_table now fails if boolean is
 not parsed correctly

---
 unittests/table_json_conversion/test_read_xlsx.py | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/unittests/table_json_conversion/test_read_xlsx.py b/unittests/table_json_conversion/test_read_xlsx.py
index ac0a42b5..cd5d53dd 100644
--- a/unittests/table_json_conversion/test_read_xlsx.py
+++ b/unittests/table_json_conversion/test_read_xlsx.py
@@ -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("There is no entry in the schema") == 1
     assert str(caught.value).count("is not one of") == 1
-    # FIXME ToDo: Remove when boolean is fixed / when everything works as
-    #             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
+    assert str(caught.value).count("is not of type") == 4
     # Check correct error message for completely unknown path
     with pytest.raises(jsonschema.ValidationError) as caught:
         convert.to_dict(xlsx=rfp("data/simple_data_broken_paths.xlsx"),
-- 
GitLab