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

Method test_select_star_future

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

Source from the content-addressed store, hash-verified

5776 )
5777
5778 def test_select_star_future(self):
5779 User = self.classes.User
5780
5781 sess = fixture_session()
5782 eq_(
5783 sess.execute(
5784 select(User).from_statement(
5785 text("select * from users order by id")
5786 )
5787 )
5788 .scalars()
5789 .first(),
5790 User(id=7),
5791 )
5792 eq_(
5793 sess.execute(
5794 select(User).from_statement(
5795 text("select * from users where name='nonexistent'")
5796 )
5797 )
5798 .scalars()
5799 .first(),
5800 None,
5801 )
5802
5803 def test_columns_mismatched(self):
5804 # test that columns using column._label match, as well as that

Callers

nothing calls this directly

Calls 9

fixture_sessionFunction · 0.90
eq_Function · 0.90
selectFunction · 0.90
textFunction · 0.90
UserClass · 0.70
firstMethod · 0.45
scalarsMethod · 0.45
executeMethod · 0.45
from_statementMethod · 0.45

Tested by

no test coverage detected