MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_no_class

Method test_no_class

test/sql/test_operators.py:962–969  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

960 __dialect__ = "default"
961
962 def test_no_class(self):
963 class MyType(TypeEngine):
964 pass
965
966 with expect_deprecated(
967 r"Type object .*.MyType.* does not refer to an OperatorClass"
968 ):
969 column("q", MyType()) + 5
970
971 @testing.variation("json_type", ["plain", "with_variant"])
972 def test_json_cant_contains(self, json_type):

Callers

nothing calls this directly

Calls 3

expect_deprecatedFunction · 0.90
columnFunction · 0.90
MyTypeClass · 0.70

Tested by

no test coverage detected