From 646b1d7479561db39608bd99241d237aa07461e6 Mon Sep 17 00:00:00 2001 From: Stefaan Lippens Date: Wed, 17 Jul 2024 17:24:27 +0200 Subject: [PATCH] Update to recent openeo-python-driver changes ref: https://github.com/Open-EO/openeo-python-driver/issues/294 --- setup.py | 2 +- tests/partitionedjobs/test_api.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 966bb4d..0c54775 100644 --- a/setup.py +++ b/setup.py @@ -37,7 +37,7 @@ "requests", "attrs", "openeo>=0.27.0", - "openeo_driver>=0.101.0.dev", + "openeo_driver>=0.107.1.dev", "flask~=2.0", "gunicorn~=20.0", "python-json-logger>=2.0.0", diff --git a/tests/partitionedjobs/test_api.py b/tests/partitionedjobs/test_api.py index 6ccd675..aaf1946 100644 --- a/tests/partitionedjobs/test_api.py +++ b/tests/partitionedjobs/test_api.py @@ -109,7 +109,7 @@ def test_create_job_basic(self, api100, zk_db, dummy1): "user_id": TEST_USER, "created": self.now.epoch, "process": P35, - "metadata": {"title": "3+5", "description": "Addition of 3 and 5", "plan": "free"}, + "metadata": {"title": "3+5", "description": "Addition of 3 and 5", "plan": "free", "log_level": "info"}, "job_options": {"split_strategy": "flimsy"}, } assert zk_db.get_pjob_status(user_id=TEST_USER, pjob_id=pjob_id) == { @@ -528,6 +528,7 @@ def test_create_job_basic(self, flask_app, api100, zk_db, dummy1): "title": "Mol", "plan": "free", "_tiling_geometry": DictSubSet({"global_spatial_extent": DictSubSet({"west": 4.9})}), + "log_level": "info", }, "job_options": {"tile_grid": "utm-10km"}, } @@ -717,7 +718,7 @@ def test_create_job_simple(self, flask_app, api100, zk_db, dummy1): "user_id": TEST_USER, "created": self.now.epoch, "process": {"process_graph": pg}, - "metadata": {}, + "metadata": {"log_level": "info"}, "job_options": {"split_strategy": "crossbackend"}, "result_jobs": ["main"], } @@ -794,7 +795,7 @@ def test_create_job_basic(self, flask_app, api100, zk_db, dummy1, requests_mock) "user_id": TEST_USER, "created": self.now.epoch, "process": {"process_graph": pg}, - "metadata": {}, + "metadata": {"log_level": "info"}, "job_options": {"split_strategy": "crossbackend"}, "result_jobs": ["main"], }