(conn, param, autocommit)
| 752 | @pytest.mark.parametrize("autocommit", [True, False]) |
| 753 | @pytest.mark.parametrize("param", tx_params_isolation) |
| 754 | def test_set_transaction_param_block(conn, param, autocommit): |
| 755 | conn.set_autocommit(autocommit) |
| 756 | for value in param.values: |
| 757 | getattr(conn, f"set_{param.name}")(value) |
| 758 | with conn.transaction(): |
| 759 | cur = conn.execute( |
| 760 | "select current_setting(%s)", [f"transaction_{param.guc}"] |
| 761 | ) |
| 762 | pgval = cur.fetchone()[0] |
| 763 | assert tx_values_map[pgval] == value |
| 764 | |
| 765 | |
| 766 | @pytest.mark.parametrize("param", tx_params) |
nothing calls this directly
no test coverage detected
searching dependent graphs…