def test_format_slack_message(self): message = main.format_slack_message('lion', example_response) # Just make sure there's a result. assert 'title' in message['attachments'][0] assert message['attachments'][0]['color'] == '#3367d6'
def test_format_slack_message(self): message = main.format_slack_message('lion', example_response) assert 'lion' in message['text'].lower() assert 'lion' in message['attachments'][0]['title'].lower() assert message['attachments'][0]['color'] == '#3367d6'