Method
test_cast_ops
test/sql/test_operators.py:1277–1281
· test/sql/test_operators.py::JSONIndexOpTest.test_cast_ops
(self, caster, expected_type)
Source from the content-addressed store, hash-verified
| 1275 | |
| 1276 | @_caster_combinations |
| 1277 | def test_cast_ops(self, caster, expected_type): |
| 1278 | expr = Column(class="st">"x", JSON)[class="st">"foo"] |
| 1279 | |
| 1280 | expr = getattr(expr, class="st">"as_%s" % caster)() |
| 1281 | is_(expr.type._type_affinity, expected_type) |
| 1282 | |
| 1283 | @_caster_combinations |
| 1284 | def test_cast_ops_unsupported_on_non_binary(self, caster, expected_type): |
Callers
nothing calls this directly
Tested by
no test coverage detected