mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Cleanup
This commit is contained in:
parent
29db0a60fb
commit
a1ed565081
|
@ -39,7 +39,7 @@ class Resource(EmitterMixin, AuthMixin, RequestMixin, View):
|
|||
parsers.MultipartParser )
|
||||
|
||||
# List of validators to validate, cleanup and type-ify the request content
|
||||
validators = (validators.FormValidator,)
|
||||
validators = ( validators.FormValidator, )
|
||||
|
||||
# List of all authenticating methods to attempt.
|
||||
authenticators = ( authenticators.UserLoggedInAuthenticator,
|
||||
|
|
|
@ -13,21 +13,6 @@ class TestValidatorMixinInterfaces(TestCase):
|
|||
"""Ensure the ValidatorMixin base class interface is as expected."""
|
||||
self.assertRaises(NotImplementedError, BaseValidator(None).validate, None)
|
||||
|
||||
#def test_form_validator_mixin_interface(self):
|
||||
# """Ensure the FormValidatorMixin interface is as expected."""
|
||||
# self.assertTrue(issubclass(FormValidator, BaseValidator))
|
||||
# getattr(FormValidator, 'form')
|
||||
# getattr(FormValidator, 'validate')
|
||||
|
||||
#def test_model_form_validator_mixin_interface(self):
|
||||
# """Ensure the ModelFormValidatorMixin interface is as expected."""
|
||||
# self.assertTrue(issubclass(ModelFormValidator, FormValidator))
|
||||
# getattr(ModelFormValidator, 'model')
|
||||
# getattr(ModelFormValidator, 'form')
|
||||
# getattr(ModelFormValidator, 'fields')
|
||||
# getattr(ModelFormValidator, 'exclude_fields')
|
||||
# getattr(ModelFormValidator, 'validate')
|
||||
|
||||
|
||||
class TestDisabledValidations(TestCase):
|
||||
"""Tests on FormValidator with validation disabled by setting form to None"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user