MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_cast_ops

Method test_cast_ops

test/sql/test_operators.py:1127–1131  ·  view source on GitHub ↗
(self, caster, expected_type)

Source from the content-addressed store, hash-verified

1125
1126 @_caster_combinations
1127 def test_cast_ops(self, caster, expected_type):
1128 expr = Column("x", JSON)["foo"]
1129
1130 expr = getattr(expr, "as_%s" % caster)()
1131 is_(expr.type._type_affinity, expected_type)
1132
1133 @_caster_combinations
1134 def test_cast_ops_unsupported_on_non_binary(self, caster, expected_type):

Callers

nothing calls this directly

Calls 2

ColumnClass · 0.90
is_Function · 0.90

Tested by

no test coverage detected