Use http_retry decorator from swh.core.retry module

The http_retry decorator has been moved to swh-core package in order
to ease its reuse across swh packages.
This commit is contained in:
Antoine Lambert 2023-04-13 14:19:39 +02:00
parent 1ee549fc9d
commit 4f57e84450
13 changed files with 32 additions and 201 deletions

View file

@ -9,8 +9,8 @@ import os
import pytest
from swh.core.retry import MAX_NUMBER_ATTEMPTS
from swh.lister.bitbucket.lister import BitbucketLister
from swh.lister.utils import MAX_NUMBER_ATTEMPTS
@pytest.fixture
@ -188,7 +188,6 @@ def test_bitbucket_lister_buggy_page(
bb_api_repositories_page1,
bb_api_repositories_page2,
):
requests_mock.get(
BitbucketLister.API_URL,
[