1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Corrected expected test output to allow for cleanups in signal and compatibility checks.

This commit is contained in:
Russell Keith-Magee 2014-03-03 19:29:50 +08:00
parent c41335fa27
commit 6b63742ce5
3 changed files with 6 additions and 6 deletions

View File

@ -31,9 +31,9 @@ def check_model_signals(app_configs=None, **kwargs):
# The receiver is either a function or an instance of class
# defining a `__call__` method.
if isinstance(receiver, types.FunctionType):
description = "The `%s` function" % receiver.__name__
description = "The '%s' function" % receiver.__name__
else:
description = "An instance of the `%s` class" % receiver.__class__.__name__
description = "An instance of the '%s' class" % receiver.__class__.__name__
errors.append(
Error(
"%s was connected to the '%s' signal "

View File

@ -134,7 +134,7 @@ class Django_1_6_0_CompatibilityChecks(TestCase):
errors = check_1_6_compatibility()
expected = [
checks.Warning(
'BooleanField does not have a default value. ',
'BooleanField does not have a default value.',
hint=('Django 1.6 changed the default value of BooleanField from False to None. '
'See https://docs.djangoproject.com/en/1.6/ref/models/fields/#booleanfield '
'for more information.'),

View File

@ -32,7 +32,7 @@ class ModelValidationTest(TestCase):
errors = run_checks()
expected = [
Error(
"The `on_post_init` function was connected to the `post_init` "
"The 'on_post_init' function was connected to the 'post_init' "
"signal with a lazy reference to the 'missing-app.Model' "
"sender, which has not been installed.",
hint=None,
@ -40,8 +40,8 @@ class ModelValidationTest(TestCase):
id='signals.E001',
),
Error(
"An instance of the `OnPostInit` class was connected to "
"the `post_init` signal with a lazy reference to the "
"An instance of the 'OnPostInit' class was connected to "
"the 'post_init' signal with a lazy reference to the "
"'missing-app.Model' sender, which has not been installed.",
hint=None,
obj='model_validation.tests',