MCPcopy Index your code
hub / github.com/dbcli/pgcli / test_i_works

Function test_i_works

tests/test_main.py:329–335  ·  view source on GitHub ↗
(tmpdir, executor)

Source from the content-addressed store, hash-verified

327
328@dbtest
329def 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

Callers

nothing calls this directly

Calls 2

PGCliClass · 0.90
runFunction · 0.90

Tested by

no test coverage detected