Skip to content

Commit

Permalink
Merge pull request #64 from geoadmin/bug-bgdiinf-sb-3129-randomize
Browse files Browse the repository at this point in the history
BGDIINF_SB-3129: Fixed dockerfile and validators version
  • Loading branch information
ltflb-bgdi authored Nov 13, 2023
2 parents cd0e7f0 + 4c30ccc commit 19c1eb0
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 27 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9-slim-buster
FROM python:3.11-slim-buster
RUN groupadd -r geoadmin && useradd -r -s /bin/false -g geoadmin geoadmin


Expand Down
4 changes: 2 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ name = "pypi"
[packages]
boto3 = "~=1.28"
logging-utilities = "~=4.0"
Flask = "~=3.0"
Flask = "~=3.0.0"
gevent = "~=23.9"
gunicorn = "~=21.2"
PyYAML = "~=6.0"
python-dotenv = "~=1.0"
validators = "~=0.22"
validators = "==0.20" # breaking change in 0.21 and 0.22 (# in url path). To be fixed in >=0.23
nanoid = "~=2.0"

[dev-packages]
Expand Down
53 changes: 30 additions & 23 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/unit_tests/test_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_checker_ok(self):
self.assertEqual(response.json, {'success': True, 'message': 'OK', 'version': APP_VERSION})

def test_create_shortlink_ok(self):
url = "https://map.geo.admin.ch/test"
url = "https://map.geo.admin.ch/#/map?lang=en&center=2647850.83,1120124.2&z=1.812&bgLayer=ch.swisstopo.pixelkarte-farbe&top" # pylint: disable=line-too-long
response = self.app.post(
url_for('create_shortlink'), json={"url": url}, headers={"Origin": "map.geo.admin.ch"}
)
Expand Down

0 comments on commit 19c1eb0

Please sign in to comment.