MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_cols

Method test_cols

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

Source from the content-addressed store, hash-verified

3860 assert q._compile_state()._has_mapper_entities
3861
3862 def test_cols(self):
3863 User = self.classes.User
3864 s = fixture_session()
3865
3866 q = s.query(User.id)
3867
3868 assert not q._compile_state()._has_mapper_entities
3869
3870 def test_cols_set_entities(self):
3871 User = self.classes.User

Callers

nothing calls this directly

Calls 3

fixture_sessionFunction · 0.90
_compile_stateMethod · 0.80
queryMethod · 0.45

Tested by

no test coverage detected