Skip to content

Commit

Permalink
Corrected expected test output to allow for cleanups in signal and co…
Browse files Browse the repository at this point in the history
…mpatibility checks.
  • Loading branch information
freakboy3742 committed Mar 3, 2014
1 parent c41335f commit 6b63742
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions django/core/checks/model_checks.py
Expand Up @@ -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 "
Expand Down
2 changes: 1 addition & 1 deletion tests/check_framework/tests.py
Expand Up @@ -134,7 +134,7 @@ def test_boolean_field_default_value(self):
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.'),
Expand Down
6 changes: 3 additions & 3 deletions tests/model_validation/tests.py
Expand Up @@ -32,16 +32,16 @@ def test_model_signal(self):
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,
obj='model_validation.tests',
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',
Expand Down

0 comments on commit 6b63742

Please sign in to comment.