Unverified Commit 840e828d authored by Sijis Aviles's avatar Sijis Aviles Committed by GitHub

Merge pull request #1276 from andrewthetechie/att/fix-testing

Fix webhook test to not call testbot fixture directly
parents 54235d4a 6b12f81d
......@@ -45,12 +45,11 @@ def wait_for_server(port: int):
@pytest.fixture
def webhook_testbot(request):
tbot = testbot(request)
tbot.push_message("!plugin config Webserver {'HOST': 'localhost', 'PORT': %s, 'SSL': None}" % WEBSERVER_PORT)
log.info(tbot.pop_message())
def webhook_testbot(request, testbot):
testbot.push_message("!plugin config Webserver {'HOST': 'localhost', 'PORT': %s, 'SSL': None}" % WEBSERVER_PORT)
log.info(testbot.pop_message())
wait_for_server(WEBSERVER_PORT)
return tbot
return testbot
def test_not_configured_url_returns_404(webhook_testbot):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment