pytest-flask icon indicating copy to clipboard operation
pytest-flask copied to clipboard

Run liveserver fixture on another server

Open janash opened this issue 3 years ago • 1 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.

janash avatar Apr 13 '22 14:04 janash

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

dgtlmoon avatar Mar 18 '23 15:03 dgtlmoon