Commit 6b12f81d authored by Andrew Herrington's avatar Andrew Herrington

Fix webhook test to not call fixture directly

parent 54235d4a
......@@ -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