flask-testing
flask-testing copied to clipboard
adding the ability to set the host on the flask app for using a remot…
…e selenium server
My usecase was that I wanted to have testing done using docker compose and selenium/standalone-chrome. Since they run in different containers you need to bind the host to 0.0.0.0 or the selenium container cannot access the LiveServer.
These changes allow you to configure your app to change the host that the LiveServer starts on like this:
def create_app(self): app.config.update( LIVESERVER_PORT=8943, LIVESERVER_HOST='0.0.0.0' )