Loading tests/forms_tests/tests/test_validators.py +27 −29 Original line number Diff line number Diff line Loading @@ -8,6 +8,8 @@ from django.core import validators from django.core.exceptions import ValidationError class TestFieldWithValidators(TestCase): def test_all_errors_get_reported(self): class UserForm(forms.Form): full_name = forms.CharField( max_length=50, Loading @@ -34,12 +36,8 @@ class UserForm(forms.Form): flags=re.IGNORECASE, ) ] ) class TestFieldWithValidators(TestCase): def test_all_errors_get_reported(self): form = UserForm({ 'full_name': 'not int nor mail', 'string': '2 is not correct', Loading Loading
tests/forms_tests/tests/test_validators.py +27 −29 Original line number Diff line number Diff line Loading @@ -8,6 +8,8 @@ from django.core import validators from django.core.exceptions import ValidationError class TestFieldWithValidators(TestCase): def test_all_errors_get_reported(self): class UserForm(forms.Form): full_name = forms.CharField( max_length=50, Loading @@ -34,12 +36,8 @@ class UserForm(forms.Form): flags=re.IGNORECASE, ) ] ) class TestFieldWithValidators(TestCase): def test_all_errors_get_reported(self): form = UserForm({ 'full_name': 'not int nor mail', 'string': '2 is not correct', Loading