summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndrew Godwin <andrew@aeracode.org>2014-04-30 15:11:29 -0700
committerAndrew Godwin <andrew@aeracode.org>2014-04-30 15:11:52 -0700
commite049c88603b474ccc5dbe02a60760280b149ecd8 (patch)
tree6bd57439c3482edc21ef0ed9a6b0c7a9479847f6 /tests
parent927245ccd8de111338d72d8f5e9172f33a991826 (diff)
Cleanup failing test w/contenttypes and remove useless graph load
Diffstat (limited to 'tests')
-rw-r--r--tests/migrations/test_state.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/migrations/test_state.py b/tests/migrations/test_state.py
index e5cee5f6cd..afd2f8b8b9 100644
--- a/tests/migrations/test_state.py
+++ b/tests/migrations/test_state.py
@@ -361,7 +361,10 @@ class StateTests(TestCase):
project_state = ProjectState(real_apps=["contenttypes"])
project_state.add_model_state(ModelState.from_model(TestModel))
rendered_state = project_state.render()
- self.assertEqual(len(rendered_state.get_models()), 2)
+ self.assertEqual(
+ len([x for x in rendered_state.get_models() if x._meta.app_label == "migrations"]),
+ 1,
+ )
class ModelStateTests(TestCase):