(conn)
| 662 | |
| 663 | |
| 664 | def test_as_bytes_context(conn): |
| 665 | conn.adapters.register_dumper(str, make_dumper("1")) |
| 666 | query = sql.as_bytes(sql.SQL("select {}").format("foo"), context=conn) |
| 667 | assert isinstance(query, bytes) |
| 668 | assert query == no_e(b"select 'foo1'") |
| 669 | |
| 670 | |
| 671 | def test_as_bytes_literal(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…