MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_basic

Method test_basic

test/sql/test_compiler.py:6159–6165  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6157
6158class StringifySpecialTest(fixtures.TestBase):
6159 def test_basic(self):
6160 stmt = select(table1).where(table1.c.myid == 10)
6161 eq_ignore_whitespace(
6162 str(stmt),
6163 "SELECT mytable.myid, mytable.name, mytable.description "
6164 "FROM mytable WHERE mytable.myid = :myid_1",
6165 )
6166
6167 def test_unnamed_column(self):
6168 stmt = Column(Integer) == 5

Callers

nothing calls this directly

Calls 3

selectFunction · 0.90
eq_ignore_whitespaceFunction · 0.90
whereMethod · 0.45

Tested by

no test coverage detected