pytest-dev / pytest-flask

A set of pytest fixtures to test Flask applications

Home Page:http://pytest-flask.readthedocs.org/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run liveserver fixture on another server

janash opened this issue · comments

I use the liveserver fixture in the testing suite for my app. I have recently switched my app to run using waitress in the production environment. To run using waitress, I do something similar to:

from waitress import serve
app = create_app()
serve(app)

This uses serve rather than app.run(). I'd really like to be able to easily run the live server fixture using this same format. As far as I can tell, the relevant line of code is here. It would be nice to be able to override or configure how this runs.

what about --live-server-host 0.0.0.0 so it listens on all interfaces?