(tmpdir, executor)
| 327 | |
| 328 | @dbtest |
| 329 | def test_i_works(tmpdir, executor): |
| 330 | sqlfile = tmpdir.join("test.sql") |
| 331 | sqlfile.write("SELECT NOW()") |
| 332 | rcfile = str(tmpdir.join("rcfile")) |
| 333 | cli = PGCli(pgexecute=executor, pgclirc_file=rcfile) |
| 334 | statement = r"\i {0}".format(sqlfile) |
| 335 | run(executor, statement, pgspecial=cli.pgspecial) |
| 336 | |
| 337 | |
| 338 | @dbtest |