Fix api tests in docker (#1255)
The tests have recently been rewritten to use `url_for`, which was changed in flask 2.2.0, so the tests don't pass in previous versions https://flask.palletsprojects.com/en/2.3.x/api/#flask.Flask.url_for However the python3-flask package for ubuntu only features the ancient version 2.0.1-2ubuntu1. Therefore this commit switches flask the install to pip, where recent verions are available References https://github.com/geopython/pygeoapi/issues/1111
This commit is contained in:
@@ -91,8 +91,6 @@ ENV TZ=${TZ} \
|
||||
tzdata \
|
||||
gunicorn \
|
||||
python3-dateutil \
|
||||
python3-flask \
|
||||
python3-flask-cors \
|
||||
python3-gevent \
|
||||
python3-greenlet \
|
||||
python3-pip \
|
||||
|
||||
@@ -4,3 +4,5 @@ pygeofilter[backend-sqlalchemy]
|
||||
pygeoif
|
||||
pygeometa
|
||||
sodapy
|
||||
Flask>=2.2.0
|
||||
Flask-Cors
|
||||
|
||||
Reference in New Issue
Block a user