MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_as_scalars_future

Method test_as_scalars_future

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

Source from the content-addressed store, hash-verified

475 )
476
477 def test_as_scalars_future(self):
478 Data = self.classes.Data
479 sess = Session(testing.db)
480
481 b1 = Bundle("b1", Data.d1, Data.d2)
482
483 stmt = select(b1).filter(b1.c.d1.between("d3d1", "d5d1"))
484 eq_(
485 sess.scalars(stmt).all(),
486 [("d3d1", "d3d2"), ("d4d1", "d4d2"), ("d5d1", "d5d2")],
487 )
488
489 def test_single_entity_flag_but_multi_entities(self):
490 Data = self.classes.Data

Callers

nothing calls this directly

Calls 8

scalarsMethod · 0.95
SessionClass · 0.90
BundleClass · 0.90
selectFunction · 0.90
eq_Function · 0.90
filterMethod · 0.45
betweenMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected