mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #30060 -- Moved SQL generation for indexes and constraints to SchemaEditor.
This commit is contained in:
parent
e5ae9488ac
commit
0123b67f6b
8 changed files with 146 additions and 117 deletions
|
@ -18,6 +18,18 @@ class BaseConstraintTests(SimpleTestCase):
|
|||
with self.assertRaisesMessage(NotImplementedError, msg):
|
||||
c.constraint_sql(None, None)
|
||||
|
||||
def test_create_sql(self):
|
||||
c = BaseConstraint('name')
|
||||
msg = 'This method must be implemented by a subclass.'
|
||||
with self.assertRaisesMessage(NotImplementedError, msg):
|
||||
c.create_sql(None, None)
|
||||
|
||||
def test_remove_sql(self):
|
||||
c = BaseConstraint('name')
|
||||
msg = 'This method must be implemented by a subclass.'
|
||||
with self.assertRaisesMessage(NotImplementedError, msg):
|
||||
c.remove_sql(None, None)
|
||||
|
||||
|
||||
class CheckConstraintTests(TestCase):
|
||||
def test_repr(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue