def test_oauth_response_missing_keys(self):
"""
A ``requests.RequestException`` is raised when the call for an OAuth2 access token returns no data.
"""
responses.add(
responses.POST,
self.oauth_url,
json={},
status=200
)
responses.add(
responses.DELETE,
self.course_url,
json={},
status=200
)
degreed_api_client = DegreedAPIClient(self.enterprise_config)
with self.assertRaises(requests.RequestException):
degreed_api_client.delete_course_content({})
评论列表
文章目录