Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-lister
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Platform
Development
swh-lister
Commits
1284eb15
Commit
1284eb15
authored
3 years ago
by
Antoine Lambert
Browse files
Options
Downloads
Patches
Plain Diff
sourceforge/tests: Fix failing test with tenacity < 5.1
It fixes debian package build of swh-lister on buster.
parent
3baf1d09
No related branches found
No related tags found
1 merge request
!219
sourceforge/tests: Fix failing test with tenacity < 5.1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swh/lister/sourceforge/tests/test_lister.py
+3
-2
3 additions, 2 deletions
swh/lister/sourceforge/tests/test_lister.py
with
3 additions
and
2 deletions
swh/lister/sourceforge/tests/test_lister.py
+
3
−
2
View file @
1284eb15
...
...
@@ -19,6 +19,8 @@ from swh.lister.sourceforge.lister import (
SourceForgeLister
,
SourceForgeListerState
,
)
from
swh.lister.tests.test_utils
import
assert_sleep_calls
from
swh.lister.utils
import
WAIT_EXP_BASE
# Mapping of project name to namespace
from
swh.scheduler.model
import
ListedOrigin
...
...
@@ -324,8 +326,7 @@ def test_sourceforge_lister_retry(swh_scheduler, requests_mock, mocker, datadir)
}
# Test `time.sleep` is called with exponential retries
calls
=
[
1.0
,
10.0
,
1.0
,
1.0
]
mocked_sleep
.
assert_has_calls
([
mocker
.
call
(
c
)
for
c
in
calls
])
assert_sleep_calls
(
mocker
,
mocked_sleep
,
[
1
,
WAIT_EXP_BASE
,
1
,
1
])
@pytest.mark.parametrize
(
"
status_code
"
,
[
500
,
503
,
504
,
403
,
404
])
...
...
This diff is collapsed.
Click to expand it.
Phabricator Migration user
@phabricator-migration
mentioned in merge request
!220 (closed)
·
2 years ago
mentioned in merge request
!220 (closed)
mentioned in merge request !220
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment