MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_single_entity_legacy_query

Method test_single_entity_legacy_query

test/orm/test_bundle.py:402–411  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

400 )
401
402 def test_single_entity_legacy_query(self):
403 Data = self.classes.Data
404 sess = fixture_session()
405
406 b1 = Bundle("b1", Data.d1, Data.d2, single_entity=True)
407
408 eq_(
409 sess.query(b1).filter(b1.c.d1.between("d3d1", "d5d1")).all(),
410 [("d3d1", "d3d2"), ("d4d1", "d4d2"), ("d5d1", "d5d2")],
411 )
412
413 def test_labeled_cols_non_single_entity_legacy_query(self):
414 Data = self.classes.Data

Callers

nothing calls this directly

Calls 7

fixture_sessionFunction · 0.90
BundleClass · 0.90
eq_Function · 0.90
allMethod · 0.45
filterMethod · 0.45
queryMethod · 0.45
betweenMethod · 0.45

Tested by

no test coverage detected