Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/psycopg/psycopg
/ test_encoding
Function
test_encoding
tests/test_connection_info.py:219–221 ·
view source on GitHub ↗
(conn)
Source
from the content-addressed store, hash-verified
217
218
219
def
test_encoding(conn):
220
enc = conn.execute(
"show client_encoding"
).fetchone()[0]
221
assert conn.info.encoding == pg2pyenc(enc.encode())
222
223
224
@pytest.mark.crdb(
"skip"
, reason=
"encoding not normalized"
)
Callers
nothing calls this directly
Calls
3
pg2pyenc
Function · 0.90
fetchone
Method · 0.45
execute
Method · 0.45
Tested by
no test coverage detected