MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_entity

Method test_entity

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

Source from the content-addressed store, hash-verified

3851
3852class HasMapperEntitiesTest(QueryTest):
3853 def test_entity(self):
3854 User = self.classes.User
3855 s = fixture_session()
3856
3857 q = s.query(User)
3858
3859 assert q._compile_state()._has_mapper_entities
3860
3861 def test_cols(self):
3862 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