MCPcopy Index your code
hub / github.com/dbcli/mycli / test_multiple_queries_same_line

Function test_multiple_queries_same_line

test/pytests/test_sqlexecute.py:161–182  ·  view source on GitHub ↗
(executor)

Source from the content-addressed store, hash-verified

159
160@dbtest
161def test_multiple_queries_same_line(executor):
162 results = run(executor, "select 'foo'; select 'bar'")
163
164 expected = [
165 {
166 "preamble": None,
167 "header": ["foo"],
168 "rows": [("foo",)],
169 "postamble": None,
170 "status_plain": "1 row in set",
171 'status': FormattedText([('', '1 row in set')]),
172 },
173 {
174 "preamble": None,
175 "header": ["bar"],
176 "rows": [("bar",)],
177 "postamble": None,
178 "status_plain": "1 row in set",
179 'status': FormattedText([('', '1 row in set')]),
180 },
181 ]
182 assert expected == results
183
184
185@dbtest

Callers

nothing calls this directly

Calls 1

runFunction · 0.90

Tested by

no test coverage detected