live_server_host Configuration
tjcim opened this issue · comments
First off, I don't know if this is a bug or if it is functioning as intended...
Is your feature request related to a problem? Please describe.
I spent a great deal of time trying to get (a remote) Selenium and pytest-flask to work together today. It turned out that I needed to set both the flask config SERVER_NAME
and add the pytest option --live-server-host
.
Describe the solution you'd like
I would like it if just one of these were necessary and to see it documented.
Describe alternatives you've considered
I don't know of any alternatives.
Additional context
I am running tests using a docker-compose
file that contains the web app, selenium-hub, and a selenium node. The web app command just runs pytest
.
This is probably just me not fully understanding, but I finally got it figured out. --live-server-host
is the equivalent to the host portion in flask run --host 0.0.0.0
. Now it makes much more sense!