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

Method test_text

test/sql/test_query.py:933–935  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

931 self._assert_raises(stmt, {"data": "data"})
932
933 def test_text(self):
934 stmt = text("select * from foo where x=:x and data=:data1")
935 self._assert_raises(stmt, {"data1": "data"})
936
937 def test_required_flag(self):
938 is_(bindparam("foo").required, True)

Callers

nothing calls this directly

Calls 2

_assert_raisesMethod · 0.95
textFunction · 0.90

Tested by

no test coverage detected