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

Function test_bools_are_treated_as_strings

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

Source from the content-addressed store, hash-verified

72
73@dbtest
74def test_bools_are_treated_as_strings(executor):
75 run(executor, """create table test(a boolean)""")
76 run(executor, """insert into test values(True)""")
77 assert run(executor, """select * from test""", join=True) == dedent(
78 """\
79 +------+
80 | a |
81 |------|
82 | True |
83 +------+
84 SELECT 1"""
85 )
86
87
88@dbtest

Callers

nothing calls this directly

Calls 1

runFunction · 0.90

Tested by

no test coverage detected