()
| 1120 | |
| 1121 | |
| 1122 | def test_cast_boolean_array_to_features(): |
| 1123 | arr = pa.array([[False, True]]) |
| 1124 | assert cast_array_to_feature(arr, List(Value("string"))).type == pa.list_(pa.string()) |
| 1125 | assert cast_array_to_feature(arr, List(Value("string")), allow_decimal_to_str=False).type == pa.list_(pa.string()) |
| 1126 | with pytest.raises(TypeError): |
| 1127 | cast_array_to_feature(arr, List(Value("string")), allow_primitive_to_str=False) |
| 1128 | |
| 1129 | |
| 1130 | def test_cast_decimal_array_to_features(): |
nothing calls this directly
no test coverage detected