MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / SomeClass

Class SomeClass

test/orm/dml/test_evaluator.py:308–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306 def test_hybrids(self, registry):
307 @registry.mapped
308 class SomeClass:
309 __tablename__ = "sc"
310 id = Column(Integer, primary_key=True)
311 data = Column(String)
312
313 @hybrid_property
314 def foo_data(self):
315 return self.data + "_foo"
316
317 eval_eq(
318 SomeClass.foo_data == "somedata_foo",

Callers 1

test_hybridsMethod · 0.70

Calls 1

ColumnClass · 0.90

Tested by 1

test_hybridsMethod · 0.56