'Test for Zendesk not fully configured in `settings`.
For each required configuration parameter, test that setting it to
`None` causes an otherwise valid request to return a 500 error.'

def test_zendesk_not_configured(self, zendesk_mock_class, datadog_mock):

    def test_case(missing_config):
        with mock.patch(missing_config, None):
            with self.assertRaises(Exception):
                self._build_and_run_request(self._anon_user, self._anon_fields)
    test_case('django.conf.settings.ZENDESK_URL')
    test_case('django.conf.settings.ZENDESK_USER')
    test_case('django.conf.settings.ZENDESK_API_KEY')
