MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_text

Method test_text

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

Source from the content-addressed store, hash-verified

863 self._assert_raises(stmt, {"data": "data"})
864
865 def test_text(self):
866 stmt = text("select * from foo where x=:x and data=:data1")
867 self._assert_raises(stmt, {"data1": "data"})
868
869 def test_required_flag(self):
870 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