Add manytomany app to test project and integration tests
This commit is contained in:
1 parent
ca6b623200
commit
537542b30d
3 files changed
+6
No files matched your search
@@ -23,3 +23,4 @@ ADD_NOT_NULL_COLUMN_FOLLOWED_BY_DEFAULT = "app_add_not_null_column_followed_by_d
|
||||
ALTER_COLUMN = "app_alter_column"
|
||||
ALTER_COLUMN_DROP_NOT_NULL = "app_alter_column_drop_not_null"
|
||||
DROP_UNIQUE_TOGETHER = "app_unique_together"
|
||||
ADD_MANYTOMANY_FIELD = "app_add_manytomany_field"
|
||||
@@ -93,6 +93,10 @@ class BaseBackwardCompatibilityDetection(object):
|
||||
app = fixtures.ALTER_COLUMN_DROP_NOT_NULL
|
||||
self._test_linter_finds_no_errors(app)
|
||||
|
||||
def test_accept_adding_manytomany_field(self):
|
||||
app = fixtures.ADD_MANYTOMANY_FIELD
|
||||
self._test_linter_finds_no_errors(app)
|
||||
|
||||
def test_with_git_ref(self):
|
||||
self._test_linter_finds_errors(commit_id="v0.1.4")
|
||||
|
||||
|
||||
@@ -40,6 +40,7 @@ INSTALLED_APPS = [
|
||||
"django.contrib.messages",
|
||||
"django.contrib.staticfiles",
|
||||
"django_migration_linter",
|
||||
"tests.test_project.app_add_manytomany_field",
|
||||
"tests.test_project.app_add_not_null_column",
|
||||
"tests.test_project.app_add_not_null_column_followed_by_default",
|
||||
"tests.test_project.app_alter_column",
|
||||
|
||||
Reference in new issue
Block a user