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

Function test_execute_from_file_no_arg

tests/test_pgexecute.py:277–283  ·  view source on GitHub ↗

r"""\i without a filename returns an error.

(executor, pgspecial)

Source from the content-addressed store, hash-verified

275
276@dbtest
277def test_execute_from_file_no_arg(executor, pgspecial):
278 r"""\i without a filename returns an error."""
279 result = list(executor.run(r"\i", pgspecial=pgspecial))
280 status, sql, success, is_special = result[0][3:]
281 assert "missing required argument" in status
282 assert success is False
283 assert is_special is True
284
285
286@dbtest

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected