Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/psycopg/psycopg
/ test_as_string
Function
test_as_string
tests/test_sql.py:639–641 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
637
638
639
def
test_as_string():
640
query = sql.as_string(sql.SQL(
"select {}"
).format(
"foo"
))
641
assert query == no_e(
"select 'foo'"
)
642
643
644
def
test_as_string_context(conn):
Callers
nothing calls this directly
Calls
3
no_e
Function · 0.85
format
Method · 0.80
as_string
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…