Skip to content

Commit

Permalink
Add test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnwpark committed Mar 15, 2024
1 parent 0a0d2b6 commit 30bbfad
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -1769,6 +1769,19 @@ async def test_constraints_ddl_error_06(self):
};
""")

async def test_constraints_ddl_error_07(self):
async with self.assertRaisesRegexTx(
edgedb.UnsupportedFeatureError,
r'Constant sets not allowed in singleton mode'
):
await self.con.execute(r"""
CREATE TYPE ConstraintOnTest_err_07 {
CREATE PROPERTY less_than_three -> std::int64 {
CREATE CONSTRAINT std::one_of({1,2,3});
};
};
""")

async def test_constraints_tuple(self):
await self.con.execute(r"""
CREATE TYPE Transaction {
Expand Down

0 comments on commit 30bbfad

Please sign in to comment.