Fix #209 - Raise when getting SQL statements fail.
This commit is contained in:
1 parent
74a7ee9239
commit
bef47906d1
4 files changed
+34
-7
No files matched your search
@@ -8,6 +8,11 @@ from django.test.utils import override_settings
|
||||
class LintMigrationsCommandTestCase(TransactionTestCase):
|
||||
databases = {"default", "sqlite"}
|
||||
|
||||
def setUp(self):
|
||||
call_command("migrate", "app_unique_together", "0002")
|
||||
self.addCleanup(call_command, "migrate", "app_unique_together")
|
||||
super().setUp()
|
||||
|
||||
def test_plain(self):
|
||||
with self.assertRaises(SystemExit):
|
||||
call_command("lintmigrations")
|
||||
|
||||
Reference in new issue
Block a user