jarus / flask-testing

Unittest extensions for Flask
http://pythonhosted.org/Flask-Testing/
Other
501 stars 110 forks source link

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

Open dhrod5 opened 6 years ago

dhrod5 commented 6 years ago

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