From c3434fed5bb223b2765a85f88053d42b70d81ad9 Mon Sep 17 00:00:00 2001 From: Baptiste Mispelon Date: Thu, 13 Feb 2014 09:31:39 +0100 Subject: [PATCH] Removed test for migration check forgotten in 7e941ba67ceab8a74ba50509d13ed4298f8305cd. --- tests/migrations/test_checks.py | 43 --------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 tests/migrations/test_checks.py diff --git a/tests/migrations/test_checks.py b/tests/migrations/test_checks.py deleted file mode 100644 index 27a44c6164..0000000000 --- a/tests/migrations/test_checks.py +++ /dev/null @@ -1,43 +0,0 @@ -# encoding: utf8 -from django.core import checks -from django.core.checks.migrations import check_migrations -from django.test import override_settings - -from .test_base import MigrationTestBase - - -class CheckMigrationTests(MigrationTestBase): - """ - Test checks for unapplied migrations. - """ - - @override_settings(MIGRATION_MODULES={"migrations": "migrations.test_migrations"}) - def test_unapplied(self): - """ - check_migrations should return a warning when there are unapplied migrations. - """ - expected = [ - checks.Warning( - "You have unapplied migrations; " - "your app may not work properly until they are applied.", - hint="Run 'python manage.py migrate' to apply them.", - ) - ] - errors = check_migrations() - self.assertEqual(errors, expected) - - @override_settings(MIGRATION_MODULES={"migrations": "migrations.test_migrations"}, DATABASES={}) - def test_no_databases(self): - """ - Migration checks should not consider unapplied migrations if there is - no database configured. - """ - errors = check_migrations() - self.assertEqual(errors, []) - - def test_no_unapplied(self): - """ - No warning should be issued if all migrations have been applied. - """ - errors = check_migrations() - self.assertEqual(errors, [])