MCPcopy
hub / github.com/sqlalchemy/alembic / test_add_explicit_constraint

Method test_add_explicit_constraint

tests/test_sqlite.py:53–62  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51 context.assert_("ALTER TABLE t1 ADD COLUMN c1 BOOLEAN")
52
53 def test_add_explicit_constraint(self):
54 op_fixture("sqlite")
55 assert_raises_message(
56 NotImplementedError,
57 "No support for ALTER of constraints in SQLite dialect",
58 op.create_check_constraint,
59 "foo",
60 "sometable",
61 column("name") > 5,
62 )
63
64 def test_drop_explicit_constraint(self):
65 op_fixture("sqlite")

Callers

nothing calls this directly

Calls 2

op_fixtureFunction · 0.90
assert_raises_messageFunction · 0.90

Tested by

no test coverage detected