Skip to content

Commit 2aadf79

Browse files
tests: fix uuid parsing in fixture
1 parent 6c79719 commit 2aadf79

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ def uuid_create(
271271
response = flask_client.post("/create/results", data=params, follow_redirects=True)
272272

273273
url_parts = response.request.path.rsplit("/")
274-
uuid = url_parts[-1]
274+
uuid = url_parts[-2]
275+
UUID(uuid) # validate uuid
275276

276277
task = celery_app.AsyncResult(uuid)
277278
result = task.get(timeout=180)
@@ -360,6 +361,7 @@ def uuid_digitize(
360361
# Extract UUID from response
361362
url_parts = response.request.path.rsplit("/")
362363
uuid = url_parts[-1]
364+
UUID(uuid) # validate uuid
363365

364366
# Wait for tasks to be finished and retrieve results (vector and raster)
365367
result = celery_app.GroupResult.restore(uuid).get(timeout=180)

0 commit comments

Comments
 (0)