Skip to content

Commit

Permalink
fixup! Issue #332 implement job listing pagination in ElasticJobRegistry
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Dec 6, 2024
1 parent 0604d56 commit ba61b84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_jobregistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,9 @@ def post_jobs_search(request, context):
# TODO: what to return? What does API return? https://github.com/Open-EO/openeo-job-tracker-elastic-api/issues/3
return [DUMMY_PROCESS]

requests_mock.post(f"{self.EJR_API_URL}/jobs/search", json=post_jobs_search)
result = ejr.list_user_jobs(user_id="john")
assert result == [DUMMY_PROCESS]

def _build_url(self, params: dict):
return "https://oeo.test/jobs?" + urllib.parse.urlencode(query=dict_no_none(params))
Expand Down

0 comments on commit ba61b84

Please sign in to comment.