MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_no_strings

Method test_no_strings

test/sql/test_tstrings_py314.py:48–52  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46 )
47
48 def test_no_strings(self):
49 with expect_raises_message(
50 exc.ArgumentError, r"pep-750 Tstring \(e.g. t'...'\) expected"
51 ):
52 tstring("select * from table") # type: ignore
53
54 def test_tstring_literal_passthrough(self):
55 stmt = tstring(t"select * from foo where lala = bar")

Callers

nothing calls this directly

Calls 2

expect_raises_messageFunction · 0.90
tstringFunction · 0.90

Tested by

no test coverage detected