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

Method test_select_star

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

Source from the content-addressed store, hash-verified

5756 )
5757
5758 def test_select_star(self):
5759 User = self.classes.User
5760
5761 eq_(
5762 fixture_session()
5763 .query(User)
5764 .from_statement(text("select * from users order by id"))
5765 .first(),
5766 User(id=7),
5767 )
5768 eq_(
5769 fixture_session()
5770 .query(User)
5771 .from_statement(
5772 text("select * from users where name='nonexistent'")
5773 )
5774 .first(),
5775 None,
5776 )
5777
5778 def test_select_star_future(self):
5779 User = self.classes.User

Callers

nothing calls this directly

Calls 7

eq_Function · 0.90
fixture_sessionFunction · 0.90
textFunction · 0.90
UserClass · 0.70
firstMethod · 0.45
from_statementMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected