Skip to content

Commit

Permalink
Issue #165 update to new "version" property in /processes
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Jan 8, 2025
1 parent c7ccb26 commit 47e4b2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,7 @@ def test_processes_basic(self, api100, requests_mock, backend1, backend2):
},
],
"links": [],
"version": None,
}

@pytest.mark.parametrize(
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 47e4b2b

Please sign in to comment.