File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 11import sys
22from unittest import mock
33
4- import pytest
54import django
5+ import pytest
66from django import forms
77from django .contrib .auth .models import User
88from django .contrib .contenttypes .models import ContentType
@@ -517,7 +517,11 @@ def test_char_fields_with_error_codes():
517517 assert regex .error_codes == {"invalid" , "required" , "null_characters_not_allowed" }
518518 assert uuid .error_codes == {"invalid" , "required" , "null_characters_not_allowed" }
519519 if django .VERSION >= (4 , 2 ):
520- assert ip .error_codes == {"invalid" , "null_characters_not_allowed" , "max_length" }
520+ assert ip .error_codes == {
521+ "invalid" ,
522+ "null_characters_not_allowed" ,
523+ "max_length" ,
524+ }
521525 else :
522526 assert ip .error_codes == {"invalid" , "null_characters_not_allowed" }
523527
You can’t perform that action at this time.
0 commit comments