diff --git a/tests/common/schema/test_coercion.py b/tests/common/schema/test_coercion.py index 922024a89b..45c48bd175 100644 --- a/tests/common/schema/test_coercion.py +++ b/tests/common/schema/test_coercion.py @@ -377,6 +377,8 @@ def test_coerce_type_complex() -> None: assert coerce_value("complex", "complex", v_list) == v_list assert coerce_value("text", "complex", v_dict) == json.dumps(v_dict) assert coerce_value("text", "complex", v_list) == json.dumps(v_list) + # TODO: add coercion tests for text to complex + # all other coercions fail with pytest.raises(ValueError): coerce_value("binary", "complex", v_list)