Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-loader-svn
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Pierre-Yves David
swh-loader-svn
Commits
96dd0437
Commit
96dd0437
authored
1 year ago
by
Antoine Lambert
Browse files
Options
Downloads
Patches
Plain Diff
tests: Fix compatibility with swh-loader-core v5.14.2
A utility function was renamed in swh-loader-core.
parent
3a239901
No related branches found
Branches containing commit
Tags
v1.3.5
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
requirements-swh.txt
+1
-1
1 addition, 1 deletion
requirements-swh.txt
swh/loader/svn/tests/test_directory.py
+7
-3
7 additions, 3 deletions
swh/loader/svn/tests/test_directory.py
with
8 additions
and
4 deletions
requirements-swh.txt
+
1
−
1
View file @
96dd0437
swh.storage >= 0.11.3
swh.model >= 6.6.0
swh.scheduler >= 0.0.39
swh.loader.core >= 5.
7.3
swh.loader.core >= 5.
14.2
This diff is collapsed.
Click to expand it.
swh/loader/svn/tests/test_directory.py
+
7
−
3
View file @
96dd0437
...
...
@@ -10,7 +10,7 @@ from swh.loader.svn.directory import SvnExportLoader
from
swh.loader.svn.svn_repo
import
get_svn_repo
from
swh.loader.tests
import
(
assert_last_visit_matches
,
fetch_
nar_
extids_from_checksums
,
fetch_extids_from_checksums
,
get_stats
,
prepare_repository_from_archive
,
)
...
...
@@ -74,7 +74,9 @@ def test_loader_svn_directory(swh_storage, datadir, tmp_path):
}
# Ensure the extids got stored as well
extids
=
fetch_nar_extids_from_checksums
(
loader
.
storage
,
checksums
)
extids
=
fetch_extids_from_checksums
(
loader
.
storage
,
checksum_layout
=
"
nar
"
,
checksums
=
checksums
)
assert
len
(
extids
)
==
len
(
checksums
)
# Another run on the same svn directory should be uneventful
...
...
@@ -123,7 +125,9 @@ def test_loader_svn_directory_hash_mismatch(swh_storage, datadir, tmp_path):
}
# Ensure no extids got stored
extids
=
fetch_nar_extids_from_checksums
(
loader
.
storage
,
faulty_checksums
)
extids
=
fetch_extids_from_checksums
(
loader
.
storage
,
checksum_layout
=
"
nar
"
,
checksums
=
faulty_checksums
)
assert
len
(
extids
)
==
0
...
...
This diff is collapsed.
Click to expand it.
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