def test_delete_reaction_to_post():
channel_id = '1234'
post_id = example_post['id']
body = {
'deleted': True
}
responses.add(responses.DELETE,
'%sfeed/%s/posts/%s/reactions' % (BASE_URL, channel_id, post_id),
body=json.dumps(body),
status=200,
content_type='application/json')
client = TwitchClient('client id', 'oauth token')
response = client.channel_feed.delete_reaction_to_post(channel_id, post_id, '1234')
assert len(responses.calls) == 1
assert response['deleted']
评论列表
文章目录