diff options
| author | Andrew Godwin <andrew@aeracode.org> | 2014-04-30 15:11:29 -0700 |
|---|---|---|
| committer | Andrew Godwin <andrew@aeracode.org> | 2014-04-30 15:12:18 -0700 |
| commit | 6ca53678699a4eececa3b178f0f7e051956bf580 (patch) | |
| tree | 80d8adc070e906a2c598e4c511bec4a477be369c /tests | |
| parent | c0d5521e69397a0f1d089d662d3b00dc5bdafa66 (diff) | |
[1.7.x] Cleanup failing test w/contenttypes and remove useless graph load
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/migrations/test_state.py | 5 |
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): |
