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:
totycro
2023-05-27 02:42:03 +02:00
committed by GitHub
parent 953b6fa74d
commit 32d50f982b
2 changed files with 2 additions and 2 deletions
-2
View File
@@ -91,8 +91,6 @@ ENV TZ=${TZ} \
tzdata \
gunicorn \
python3-dateutil \
python3-flask \
python3-flask-cors \
python3-gevent \
python3-greenlet \
python3-pip \
+2
View File
@@ -4,3 +4,5 @@ pygeofilter[backend-sqlalchemy]
pygeoif
pygeometa
sodapy
Flask>=2.2.0
Flask-Cors