MCPcopy
hub / github.com/geldata/gel / test_sql_dml_insert_03

Method test_sql_dml_insert_03

tests/test_sql_dml.py:142–152  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

140 self.assertEqual(res, [['Report (new)']])
141
142 async def test_sql_dml_insert_03(self):
143 # multiple rows at once
144 await self.scon.execute(
145 '''
146 INSERT INTO "Document" (title) VALUES ('Report'), ('Briefing')
147 '''
148 )
149 res = await self.squery_values('SELECT title FROM "Document"')
150 self.assert_data_shape(
151 res, tb.bag([['Report (new)'], ['Briefing (new)']])
152 )
153
154 async def test_sql_dml_insert_04(self):
155 # using arbitrary query instead of VALUES

Callers

nothing calls this directly

Calls 3

executeMethod · 0.80
squery_valuesMethod · 0.80
assert_data_shapeMethod · 0.80

Tested by

no test coverage detected