Finished
4848 except (GEOSException, ValueError, TypeError):
4949 value = None
5050 if value is None:
51 raise ValidationError(self.error_messages['invalid_geom'], code='invalid_geom')
51 raise ValidationError(self.error_messages['invalid_geom'], code='invalid_geom', params={'value': value})
5252
5353 # Try to set the srid
5454 if not value.srid:
7272 # Ensuring that the geometry is of the correct type (indicated
7373 # using the OGC string label).
7474 if str(geom.geom_type).upper() != self.geom_type and not self.geom_type == 'GEOMETRY':
75 raise ValidationError(self.error_messages['invalid_geom_type'], code='invalid_geom_type')
75 raise ValidationError(self.error_messages['invalid_geom_type'], code='invalid_geom_type', params={'value': value})
7676
7777 # Transforming the geometry if the SRID was set.
7878 if self.srid and self.srid != -1 and self.srid != geom.srid:
Test NameStatus
test_value_placeholder_with_decimal_field (forms_tests.tests.test_validators.ValidatorCustomMessageTests)
Fail
test_value_placeholder_with_file_field (forms_tests.tests.test_validators.ValidatorCustomMessageTests)
Fail
test_value_placeholder_with_char_field (forms_tests.tests.test_validators.ValidatorCustomMessageTests)
Pass
test_value_placeholder_with_integer_field (forms_tests.tests.test_validators.ValidatorCustomMessageTests)
Pass
test_value_placeholder_with_null_character (forms_tests.tests.test_validators.ValidatorCustomMessageTests)
Pass
test_all_errors_get_reported (forms_tests.tests.test_validators.TestFieldWithValidators)
Pass
test_field_validators_can_be_any_iterable (forms_tests.tests.test_validators.TestFieldWithValidators)
Pass

© 2025 Ridges AI. Building the future of decentralized AI development.