-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #790 from crim-ca/pytest-retry
- Loading branch information
Showing
13 changed files
with
116 additions
and
52 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
|
||
import mock | ||
import pytest | ||
import responses | ||
import yaml | ||
from owslib.ows import DEFAULT_OWS_NAMESPACE | ||
from owslib.wps import WPSException | ||
|
@@ -562,7 +563,7 @@ def test_execute_inputs_invalid(self): | |
]: | ||
self.run_execute_inputs_schema_variant(invalid_inputs_schema, expect_success=False) | ||
|
||
@pytest.mark.flaky(reruns=2, reruns_delay=1) | ||
@pytest.mark.flaky(retries=2, delay=1) | ||
def test_execute_manual_monitor_status_and_download_results(self): | ||
""" | ||
Test a typical case of :term:`Job` execution, result retrieval and download, but with manual monitoring. | ||
|
@@ -1097,7 +1098,7 @@ def add_docker_pull_ref(cwl, ref): | |
cwl["requirements"][CWL_REQUIREMENT_APP_DOCKER] = {"dockerPull": ref} | ||
return cwl | ||
|
||
@pytest.mark.flaky(reruns=2, reruns_delay=1) | ||
@pytest.mark.flaky(retries=2, delay=1) | ||
def test_deploy_docker_auth_username_password_valid(self): | ||
""" | ||
Test that username and password arguments can be provided simultaneously for docker login. | ||
|
@@ -1869,13 +1870,18 @@ def test_execute_subscriber_options(self): | |
""" | ||
proc = self.test_process["Echo"] | ||
with contextlib.ExitStack() as stack_exec: | ||
req_mock = stack_exec.enter_context(responses.RequestsMock()) | ||
for mock_exec_proc in mocked_execute_celery(): | ||
stack_exec.enter_context(mock_exec_proc) | ||
|
||
test_email_started = "[email protected]" | ||
test_email_failed = "[email protected]" | ||
test_callback_started = "https://server.com/started" | ||
test_callback_success = "https://server.com/success" | ||
|
||
req_mock.add_callback(responses.POST, test_callback_started, callback=lambda _: (200, {}, "")) | ||
req_mock.add_callback(responses.POST, test_callback_success, callback=lambda _: (200, {}, "")) | ||
|
||
lines = mocked_sub_requests( | ||
self.app, run_command, | ||
[ | ||
|
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
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
Oops, something went wrong.