Work on SQL Analyser module

* With database specific functions
* Functions that analyse the entire transaction
* Unit tests that only test this module
This commit is contained in:
David Wobrock committed 2019-07-29 21:05:12 +02:00
1 parent d02df5d20f
commit ef2052a7b0
6 files changed
+268 -44

No files matched your search

+5 -1
View File
@@ -79,7 +79,7 @@ class BaseBackwardCompatibilityDetection(object):
def test_detect_alter_column(self):
app = fixtures.ALTER_COLUMN
self._test_linter_finds_errors(app)
self._test_linter_finds_no_errors(app)
def test_accept_alter_column_drop_not_null(self):
app = fixtures.ALTER_COLUMN_DROP_NOT_NULL
@@ -109,3 +109,7 @@ class PostgresqlBackwardCompatibilityDetectionTestCase(
BaseBackwardCompatibilityDetection, unittest.TestCase
):
databases = ["postgresql"]
def test_detect_alter_column(self):
app = fixtures.ALTER_COLUMN
self._test_linter_finds_errors(app)