(self, conn)
| 81 | |
| 82 | class TestSqlFormat: |
| 83 | def test_pos(self, conn): |
| 84 | s = sql.SQL("select {} from {}").format( |
| 85 | sql.Identifier("field"), sql.Identifier("table") |
| 86 | ) |
| 87 | s1 = s.as_string(conn) |
| 88 | assert isinstance(s1, str) |
| 89 | assert s1 == 'select "field" from "table"' |
| 90 | |
| 91 | def test_pos_spec(self, conn): |
| 92 | s = sql.SQL("select {0} from {1}").format( |