MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_cols

Method test_cols

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

Source from the content-addressed store, hash-verified

3859 assert q._compile_state()._has_mapper_entities
3860
3861 def test_cols(self):
3862 User = self.classes.User
3863 s = fixture_session()
3864
3865 q = s.query(User.id)
3866
3867 assert not q._compile_state()._has_mapper_entities
3868
3869 def test_cols_set_entities(self):
3870 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