Skip to content

Commit 19c1eb0

Browse files
authored
Merge pull request #64 from geoadmin/bug-bgdiinf-sb-3129-randomize
BGDIINF_SB-3129: Fixed dockerfile and validators version
2 parents cd0e7f0 + 4c30ccc commit 19c1eb0

File tree

4 files changed

+34
-27
lines changed

4 files changed

+34
-27
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9-slim-buster
1+
FROM python:3.11-slim-buster
22
RUN groupadd -r geoadmin && useradd -r -s /bin/false -g geoadmin geoadmin
33

44

Pipfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ name = "pypi"
66
[packages]
77
boto3 = "~=1.28"
88
logging-utilities = "~=4.0"
9-
Flask = "~=3.0"
9+
Flask = "~=3.0.0"
1010
gevent = "~=23.9"
1111
gunicorn = "~=21.2"
1212
PyYAML = "~=6.0"
1313
python-dotenv = "~=1.0"
14-
validators = "~=0.22"
14+
validators = "==0.20" # breaking change in 0.21 and 0.22 (# in url path). To be fixed in >=0.23
1515
nanoid = "~=2.0"
1616

1717
[dev-packages]

Pipfile.lock

Lines changed: 30 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/unit_tests/test_routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_checker_ok(self):
2525
self.assertEqual(response.json, {'success': True, 'message': 'OK', 'version': APP_VERSION})
2626

2727
def test_create_shortlink_ok(self):
28-
url = "https://map.geo.admin.ch/test"
28+
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
2929
response = self.app.post(
3030
url_for('create_shortlink'), json={"url": url}, headers={"Origin": "map.geo.admin.ch"}
3131
)

0 commit comments

Comments
 (0)