MCPcopy Index your code
hub / github.com/geldata/gel / test_sql_dml_insert_11

Method test_sql_dml_insert_11

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

Source from the content-addressed store, hash-verified

272 )
273
274 async def test_sql_dml_insert_11(self):
275 await self.scon.execute(
276 '''
277 WITH a AS (
278 INSERT INTO "Document" (title) VALUES ('Report')
279 )
280 INSERT INTO "Document" (title) VALUES ('Briefing')
281 '''
282 )
283 res = await self.squery_values('SELECT title FROM "Document"')
284 self.assert_data_shape(
285 res, tb.bag([['Report (new)'], ['Briefing (new)']])
286 )
287
288 async def test_sql_dml_insert_12(self):
289 # returning

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