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

Method test_edgeql_insert_dependent_07

tests/test_edgeql_insert.py:4143–4158  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4141 )
4142
4143 async def test_edgeql_insert_dependent_07(self):
4144 async with self.assertRaisesRegexTx(
4145 edgedb.QueryError,
4146 "mutations are invalid in a shape's computed expression"):
4147 await self.con.execute(
4148 r"""
4149 SELECT Person {
4150 name,
4151 foo := (
4152 INSERT Note {name := 'NoteDep07'}
4153 ) {
4154 name,
4155 }
4156 };
4157 """
4158 )
4159
4160 async def test_edgeql_insert_dependent_08(self):
4161 await self.con.execute(r"""

Callers

nothing calls this directly

Calls 2

assertRaisesRegexTxMethod · 0.80
executeMethod · 0.80

Tested by

no test coverage detected