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

Method test_sql_dml_insert_17b

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

Source from the content-addressed store, hash-verified

421 )
422
423 async def test_sql_dml_insert_17b(self):
424 # more default values
425 await self.scon.execute(
426 '''
427 INSERT INTO "Post" (id, title, content) VALUES
428 (DEFAULT, 'foo', 'bar'),
429 (DEFAULT, 'post', DEFAULT),
430 (DEFAULT, DEFAULT, 'content'),
431 (DEFAULT, DEFAULT, DEFAULT);
432 '''
433 )
434 res = await self.squery_values('SELECT title, content FROM "Post"')
435 self.assert_data_shape(
436 res,
437 tb.bag([
438 ['foo', 'bar'],
439 ['post', 'This page intentionally left blank'],
440 ['untitled', 'content'],
441 ['untitled', 'This page intentionally left blank'],
442 ]),
443 )
444
445 async def test_sql_dml_insert_18(self):
446 res = await self.scon.fetch(

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