MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _option_fixture

Method _option_fixture

test/orm/test_options.py:414–426  ·  view source on GitHub ↗
(self, *arg)

Source from the content-addressed store, hash-verified

412
413class OptionsTest(PathTest, QueryTest):
414 def _option_fixture(self, *arg):
415 # note contains_eager() passes chained=True to _from_keys,
416 # which means an expression like contains_eager(a, b, c)
417 # is expected to produce
418 # contains_eager(a).contains_eager(b).contains_eager(c). no other
419 # loader option works this way right now; the rest all use
420 # defaultload() for the "chain" elements
421 return strategy_options._generate_from_keys(
422 strategy_options.Load.contains_eager,
423 arg,
424 True,
425 dict(_propagate_to_loaders=True),
426 )
427
428 @testing.combinations(
429 lambda: joinedload("addresses"),

Calls

no outgoing calls

Tested by

no test coverage detected