|
4 | 4 | import pytest |
5 | 5 | import responses |
6 | 6 |
|
7 | | -from api.share.utils import shtrove_ingest_url, sharev2_push_url |
| 7 | +from api.share.utils import shtrove_ingest_url |
8 | 8 | from framework.auth.core import Auth |
9 | 9 | from osf.models.spam import SpamStatus |
10 | 10 | from osf.utils.permissions import READ, WRITE, ADMIN |
@@ -124,14 +124,12 @@ def test_preprint_contributor_changes_updates_preprints_share(self, mock_share_r |
124 | 124 | @pytest.mark.skip('Synchronous retries not supported if celery >=5.0') |
125 | 125 | def test_call_async_update_on_500_failure(self, mock_share_responses, preprint, auth): |
126 | 126 | mock_share_responses.replace(responses.POST, shtrove_ingest_url(), status=500) |
127 | | - mock_share_responses.replace(responses.POST, sharev2_push_url(), status=500) |
128 | 127 | preprint.set_published(True, auth=auth, save=True) |
129 | 128 | with expect_preprint_ingest_request(mock_share_responses, preprint, count=5): |
130 | 129 | preprint.update_search() |
131 | 130 |
|
132 | 131 | def test_no_call_async_update_on_400_failure(self, mock_share_responses, preprint, auth): |
133 | 132 | mock_share_responses.replace(responses.POST, shtrove_ingest_url(), status=400) |
134 | | - mock_share_responses.replace(responses.POST, sharev2_push_url(), status=400) |
135 | 133 | preprint.set_published(True, auth=auth, save=True) |
136 | 134 | with expect_preprint_ingest_request(mock_share_responses, preprint, count=1, error_response=True): |
137 | 135 | preprint.update_search() |
|
0 commit comments