Skip to content

Commit

Permalink
adding nowebhook skip to discord_logger test
Browse files Browse the repository at this point in the history
  • Loading branch information
lockefox committed Jan 10, 2017
1 parent 1bafbb2 commit 6cb5fea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/logging_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ def test_debug_logger(config=TEST_CONFIG):
REQUEST_POST_ENDPOINT = TEST_CONFIG.get_option('TEST', 'request_POST_endpoint', None)
def test_discord_logger(config=TEST_CONFIG):
"""Execute LogCapture on Discord logger object"""
if not WEBHOOK: #FIXME: commenting doesn't work in config file?
pytest.skip('discord_webhook is blank')

test_logname = 'discord_logger'
log_builder = prosper_logging.ProsperLogger(
test_logname,
Expand All @@ -240,7 +243,7 @@ def test_discord_logger(config=TEST_CONFIG):
log_capture = helper_log_messages(test_logger)

discord_helper = prosper_logging.DiscordWebhook()
discord_helper.webhook(WEBHOOK)
discord_helper.webhook(WEBHOOK) #TODO: add blank-webhook test

request_POST_endpoint = REQUEST_POST_ENDPOINT.\
format(
Expand Down

0 comments on commit 6cb5fea

Please sign in to comment.