From 5f48ca780e21e30943d1694f9e21a5c8cbbf93c1 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Wed, 10 Jul 2024 09:43:55 +0200 Subject: [PATCH] Update test_jobs.py to add a new test for job list collection view --- lib/galaxy_test/api/test_jobs.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/galaxy_test/api/test_jobs.py b/lib/galaxy_test/api/test_jobs.py index 09193ea2065e..9573a5f2bb41 100644 --- a/lib/galaxy_test/api/test_jobs.py +++ b/lib/galaxy_test/api/test_jobs.py @@ -62,6 +62,15 @@ def test_admin_job_list(self, history_id): job = jobs[0] self._assert_has_keys(job, "command_line", "external_id", "handler") + @pytest.mark.require_new_history + def test_job_list_collection_view(self, history_id): + self.__history_with_new_dataset(history_id) + jobs_response = self._get("jobs?view=collection") + self._assert_status_code_is_ok(jobs_response) + jobs = jobs_response.json() + job = jobs[0] + self._assert_has_keys(job, "id", "tool_id", "state") + @pytest.mark.require_new_history def test_index_state_filter(self, history_id): # Initial number of ok jobs