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

adding the ability to set the host on the flask app for using a remot…

Open dhrod5 opened this issue 6 years ago • 0 comments

…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' )

dhrod5 avatar Jun 29 '18 16:06 dhrod5