MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_cols_set_entities

Method test_cols_set_entities

test/orm/test_query.py:3869–3876  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3867 assert not q._compile_state()._has_mapper_entities
3868
3869 def test_cols_set_entities(self):
3870 User = self.classes.User
3871 s = fixture_session()
3872
3873 q = s.query(User.id)
3874
3875 q._set_entities(User)
3876 assert q._compile_state()._has_mapper_entities
3877
3878 def test_entity_set_entities(self):
3879 User = self.classes.User

Callers

nothing calls this directly

Calls 4

fixture_sessionFunction · 0.90
_compile_stateMethod · 0.80
queryMethod · 0.45
_set_entitiesMethod · 0.45

Tested by

no test coverage detected