(conn)
| 87 | |
| 88 | |
| 89 | def test_dump_connection_ctx(conn): |
| 90 | conn.adapters.register_dumper(MyStr, make_bin_dumper("b")) |
| 91 | conn.adapters.register_dumper(MyStr, make_dumper("t")) |
| 92 | |
| 93 | cur = conn.cursor() |
| 94 | cur.execute("select %s", [MyStr("hello")]) |
| 95 | assert cur.fetchone() == ("hellot",) |
| 96 | cur.execute("select %t", [MyStr("hello")]) |
| 97 | assert cur.fetchone() == ("hellot",) |
| 98 | cur.execute("select %b", [MyStr("hello")]) |
| 99 | assert cur.fetchone() == ("hellob",) |
| 100 | |
| 101 | |
| 102 | def test_dump_cursor_ctx(conn): |
nothing calls this directly
no test coverage detected
searching dependent graphs…