From 47e4b2bd9c942cb9a479efc22698b8b4cf866211 Mon Sep 17 00:00:00 2001 From: Stefaan Lippens Date: Wed, 8 Jan 2025 19:28:27 +0100 Subject: [PATCH] Issue #165 update to new "version" property in `/processes` introduced by Open-EO/openeo-python-driver#352 --- setup.py | 2 +- tests/test_views.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 8512b2f..ec9eed2 100644 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ "requests", "attrs", "openeo>=0.36.0", - "openeo_driver>=0.107.4.dev", + "openeo_driver>=0.123.0.dev", "flask~=2.0", "gunicorn~=20.0", "python-json-logger>=2.0.0", diff --git a/tests/test_views.py b/tests/test_views.py index 5d61d4b..0b3051b 100644 --- a/tests/test_views.py +++ b/tests/test_views.py @@ -727,6 +727,7 @@ def test_processes_basic(self, api100, requests_mock, backend1, backend2): }, ], "links": [], + "version": None, } @pytest.mark.parametrize( @@ -844,7 +845,7 @@ def test_processes_resilience( else: requests_mock.get(backend2 + "/processes", status_code=404, text="nope") res = api100.get("/processes").assert_status_code(200).json - assert res == {"processes": expected, "links": []} + assert res == {"processes": expected, "links": [], "version": None} def test_result_basic_math_basic_auth(self, api100, requests_mock, backend1, backend2): def post_result(request: requests.Request, context): @@ -1006,6 +1007,7 @@ def test_processes_different_versions(self, api100, requests_mock, backend1, bac DictSubSet({"id": "prod", "federation:backends": ["b2"]}), ], "links": [], + "version": None, } def test_result_backend_by_collection_multiple_hits(self, api100, requests_mock, backend1, backend2, caplog):