MCPcopy
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
219def 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

pg2pyencFunction · 0.90
fetchoneMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected