'Verify the endpoint returns HTTP 400 if we attempt to create a
request for a provider with no secret key set.'

def test_post_secret_key_not_set(self):

    self.provider.enable_integration = True
    self.provider.save()
    with override_settings(CREDIT_PROVIDER_SECRET_KEYS={}):
        response = self.post_credit_request(self.user.username, self.eligibility.course.course_key)
    self.assertEqual(response.status_code, 400)
