summaryrefslogtreecommitdiff
path: root/tests/migrations
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-03-25 12:07:37 -0400
committerTim Graham <timograham@gmail.com>2014-03-25 12:07:37 -0400
commitd84beb3d9105300a94061dd94911a0c3cd9021d2 (patch)
tree65c85761efa22801cb4c49e2082b5636429d18ba /tests/migrations
parentbf69375c4d2eaec4f00c646b9e7e84a9397d1a20 (diff)
Revert "[1.7.x] Fixed #22331 -- Fixed migrations ProjectState to ignore unmanaged models."
This reverts commit bf69375c4d2eaec4f00c646b9e7e84a9397d1a20.
Diffstat (limited to 'tests/migrations')
-rw-r--r--tests/migrations/test_state.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/migrations/test_state.py b/tests/migrations/test_state.py
index 80ae8922bf..10f5e7d9ab 100644
--- a/tests/migrations/test_state.py
+++ b/tests/migrations/test_state.py
@@ -52,22 +52,11 @@ class StateTests(TestCase):
verbose_name = "tome"
db_table = "test_tome"
- class Unmanaged(models.Model):
- title = models.CharField(max_length=1000)
-
- class Meta:
- app_label = "migrations"
- apps = new_apps
- managed = False
-
project_state = ProjectState.from_apps(new_apps)
author_state = project_state.models['migrations', 'author']
author_proxy_state = project_state.models['migrations', 'authorproxy']
sub_author_state = project_state.models['migrations', 'subauthor']
book_state = project_state.models['migrations', 'book']
- # unmanaged models should not appear in migrations
- with self.assertRaises(KeyError):
- project_state.models['migrations', 'unmanaged']
self.assertEqual(author_state.app_label, "migrations")
self.assertEqual(author_state.name, "Author")