MCPcopy
hub / github.com/psycopg/psycopg / test_set_transaction_param_not_intrans_external

Function test_set_transaction_param_not_intrans_external

tests/test_connection.py:783–788  ·  view source on GitHub ↗
(conn, param)

Source from the content-addressed store, hash-verified

781
782@pytest.mark.parametrize("param", tx_params)
783def test_set_transaction_param_not_intrans_external(conn, param):
784 value = param.values[0]
785 conn.set_autocommit(True)
786 conn.execute("begin")
787 with pytest.raises(psycopg.ProgrammingError):
788 getattr(conn, f"set_{param.name}")(value)
789
790
791@skip_async

Callers

nothing calls this directly

Calls 2

set_autocommitMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…