edgeql: Add more tests for the schema module.
@@ -1730,11 +1730,28 @@ class TestExpressions(tb.QueryTestCase):
[[1, 3], [2, 1], [3, 2]]
])
- @unittest.expectedFailure
- async def test_edgeql_expr_module_01(self):
+ async def test_edgeql_expr_schema_01(self):
res = await self.con.execute(r'''
WITH MODULE schema
SELECT `Type`;
''')
# just test that there's a non-empty return set for this query
self.assertTrue(res[0])
+
+ @unittest.expectedFailure
+ async def test_edgeql_expr_schema_02(self):
+ await self.assert_query_result(r'''
+ WITH MODULE schema
+ SELECT Atom[IS Class] IS Atom LIMIT 1;
+ ''', [
+ [True],
+ ])
+
+ @unittest.expectedFailure
+ async def test_edgeql_expr_schema_03(self):
+ await self.assert_query_result(r'''
+ WITH MODULE schema
+ SELECT Atom[IS Object] IS Atom LIMIT 1;
+ ''', [
+ [True],
+ ])
