@pytest.mark.parametrize(('validator_class', 'params', 'response'), [(ReCaptchaV2Validator, {}, RecaptchaResponse(is_valid=True)), (ReCaptchaV3Validator, {'action': 'test_action', 'required_score': 0.4}, RecaptchaResponse(is_valid=True, extra_data={'score': 0.6, 'action': 'test_action'}))])
def test_recaptcha_validator_call_success(validator_class, params, response):
    validator = validator_class(**params)
    validator.get_response = mock.Mock(return_value=response)
    try:
        validator('test_token')
    except ValidationError:
        pytest.fail('Validation is not passed')
@pytest.mark.parametrize(('validator_class', 'params', 'response'), [(ReCaptchaV2Validator, {}, RecaptchaResponse(is_valid=True)), (ReCaptchaV3Validator, {'action': 'test_action', 'required_score': 0.4}, RecaptchaResponse(is_valid=True, extra_data={'score': 0.6, 'action': 'test_action'}))])
def test_recaptcha_validator_call_success(validator_class, params, response):
    validator = validator_class(**params)
    validator.get_response = mock.Mock(return_value=response)
    try:
        validator('test_token')
    except ValidationError:
        pytest.fail('Validation is not passed')