forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release_20.01' into release_20.05
- Loading branch information
Showing
6 changed files
with
51 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ def test_index_state_filter(self, history_id): | |
|
||
# Verify number of ok jobs is actually greater. | ||
count_increased = False | ||
for i in range(10): | ||
for _ in range(10): | ||
new_count = len(self.__uploads_with_state("ok")) | ||
if original_count < new_count: | ||
count_increased = True | ||
|
@@ -228,10 +228,11 @@ def test_report_error(self): | |
) | ||
run_response = self._post("tools", data=payload).json() | ||
job_id = run_response['jobs'][0]["id"] | ||
self.dataset_populator.wait_for_job(job_id) | ||
dataset_id = run_response['outputs'][0]['id'] | ||
response = self._post('jobs/%s/error' % job_id, | ||
data={'dataset_id': dataset_id}) | ||
assert response.status_code == 200 | ||
assert response.status_code == 200, response.text | ||
|
||
@skip_without_tool('detect_errors_aggressive') | ||
def test_report_error_anon(self): | ||
|
@@ -243,9 +244,9 @@ def test_report_error_anon(self): | |
job_id = run_response['jobs'][0]["id"] | ||
dataset_id = run_response['outputs'][0]['id'] | ||
response = requests.post('%s/jobs/%s/error' % (self.galaxy_interactor.api_url, job_id), | ||
params={'email': '[email protected]', 'dataset_id': dataset_id}, | ||
data={'email': '[email protected]', 'dataset_id': dataset_id}, | ||
cookies=cookies) | ||
assert response.status_code == 200 | ||
assert response.status_code == 200, response.text | ||
|
||
@uses_test_history(require_new=True) | ||
def test_deleting_output_keep_running_until_all_deleted(self, history_id): | ||
|
@@ -597,7 +598,7 @@ def _search_payload(self, history_id, tool_id, inputs, state='ok'): | |
def _search(self, payload, expected_search_count=1): | ||
# in case job and history aren't updated at exactly the same | ||
# time give time to wait | ||
for i in range(5): | ||
for _ in range(5): | ||
search_count = self._search_count(payload) | ||
if search_count == expected_search_count: | ||
break | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters