diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2018-03-16 10:54:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-16 10:54:34 +0100 |
| commit | 362813d6287925b8f63f0b107c55a74d95f5825e (patch) | |
| tree | efd69a3deb9e837624279e5abfdd8d55d57dcd7c /tests/forms_tests | |
| parent | aeb8c381789ad93866223f8bd07d09ae5e2edd9e (diff) | |
Fixed hanging indentation in various code.
Diffstat (limited to 'tests/forms_tests')
| -rw-r--r-- | tests/forms_tests/models.py | 3 | ||||
| -rw-r--r-- | tests/forms_tests/tests/test_forms.py | 8 |
2 files changed, 6 insertions, 5 deletions
diff --git a/tests/forms_tests/models.py b/tests/forms_tests/models.py index 327fd7802c..23cabc2d84 100644 --- a/tests/forms_tests/models.py +++ b/tests/forms_tests/models.py @@ -50,8 +50,7 @@ class ChoiceModel(models.Model): choice = models.CharField(max_length=2, blank=True, choices=CHOICES) choice_string_w_none = models.CharField( max_length=2, blank=True, null=True, choices=STRING_CHOICES_WITH_NONE) - choice_integer = models.IntegerField(choices=INTEGER_CHOICES, blank=True, - null=True) + choice_integer = models.IntegerField(choices=INTEGER_CHOICES, blank=True, null=True) class ChoiceOptionModel(models.Model): diff --git a/tests/forms_tests/tests/test_forms.py b/tests/forms_tests/tests/test_forms.py index b326468d69..f603a95a17 100644 --- a/tests/forms_tests/tests/test_forms.py +++ b/tests/forms_tests/tests/test_forms.py @@ -3240,9 +3240,11 @@ Good luck picking a username that doesn't already exist.</p> bar = CharField() def clean(self): - raise ValidationError('<p>Non-field error.</p>', - code='secret', - params={'a': 1, 'b': 2}) + raise ValidationError( + '<p>Non-field error.</p>', + code='secret', + params={'a': 1, 'b': 2}, + ) control = { 'foo': [{'code': 'required', 'message': 'This field is required.'}], |
