summaryrefslogtreecommitdiff
path: root/tests/invalid_models_tests
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-12-29 21:46:26 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-12-29 21:48:58 +0100
commite5bcd1d455cd11d3892adf6717a51ae04169f705 (patch)
tree84438e75fe5cdaf1d089a2be9e68649aee8cec5e /tests/invalid_models_tests
parent856aaaf2b15228bd5babbe44654c3c1ca39e8fd7 (diff)
Changed get_validation_errors to use an app config.
Diffstat (limited to 'tests/invalid_models_tests')
-rw-r--r--tests/invalid_models_tests/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/invalid_models_tests/tests.py b/tests/invalid_models_tests/tests.py
index 2c98f39807..08cea2e15f 100644
--- a/tests/invalid_models_tests/tests.py
+++ b/tests/invalid_models_tests/tests.py
@@ -32,13 +32,13 @@ class InvalidModelTestCase(unittest.TestCase):
TEST_SWAPPED_MODEL_BAD_MODEL='not_an_app.Target',
)
def test_invalid_models(self):
- module = apps.get_app_config("invalid_models").models_module
- get_validation_errors(self.stdout, module)
+ app_config = apps.get_app_config("invalid_models")
+ get_validation_errors(self.stdout, app_config)
self.stdout.seek(0)
error_log = self.stdout.read()
actual = error_log.split('\n')
- expected = module.model_errors.split('\n')
+ expected = app_config.models_module.model_errors.split('\n')
unexpected = [err for err in actual if err not in expected]
missing = [err for err in expected if err not in actual]