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

Function test_conn

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

Source from the content-addressed store, hash-verified

41
42@dbtest
43def test_conn(executor):
44 run(executor, """create table test(a text)""")
45 run(executor, """insert into test values('abc')""")
46 assert run(executor, """select * from test""", join=True) == dedent(
47 """\
48 +-----+
49 | a |
50 |-----|
51 | abc |
52 +-----+
53 SELECT 1"""
54 )
55
56
57@dbtest

Callers

nothing calls this directly

Calls 1

runFunction · 0.90

Tested by

no test coverage detected