MCPcopy
hub / github.com/dbcli/pgcli / test_copy

Function test_copy

tests/test_pgexecute.py:58–70  ·  view source on GitHub ↗
(executor)

Source from the content-addressed store, hash-verified

56
57@dbtest
58def test_copy(executor):
59 executor_copy = executor.copy()
60 run(executor_copy, """create table test(a text)""")
61 run(executor_copy, """insert into test values('abc')""")
62 assert run(executor_copy, """select * from test""", join=True) == dedent(
63 """\
64 +-----+
65 | a |
66 |-----|
67 | abc |
68 +-----+
69 SELECT 1"""
70 )
71
72
73@dbtest

Callers

nothing calls this directly

Calls 2

runFunction · 0.90
copyMethod · 0.80

Tested by

no test coverage detected