mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 02:04:04 +08:00
Adjust test, only check for external_id as admin-only property
This commit is contained in:
@@ -38,7 +38,7 @@ class JobsApiTestCase(ApiTestCase, TestsTools):
|
||||
self.__history_with_new_dataset(history_id)
|
||||
jobs = self.__jobs_index(admin=False)
|
||||
job = jobs[0]
|
||||
self._assert_not_has_keys(job, "command_line", "external_id")
|
||||
self._assert_not_has_keys(job, "external_id")
|
||||
|
||||
jobs = self.__jobs_index(admin=True)
|
||||
job = jobs[0]
|
||||
@@ -142,7 +142,7 @@ class JobsApiTestCase(ApiTestCase, TestsTools):
|
||||
assert not job_lock_response.json()["active"]
|
||||
|
||||
show_jobs_response = self._get("jobs/%s" % job_id, admin=False)
|
||||
self._assert_not_has_keys(show_jobs_response.json(), "command_line", "external_id")
|
||||
self._assert_not_has_keys(show_jobs_response.json(), "external_id")
|
||||
|
||||
# TODO: Re-activate test case when API accepts privacy settings
|
||||
# with self._different_user():
|
||||
|
||||
Reference in New Issue
Block a user