Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-scanner
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-scanner
Commits
8448ae0a
Commit
8448ae0a
authored
5 years ago
by
Daniele Serafini
Browse files
Options
Downloads
Patches
Plain Diff
get_subpaths test adapted to the new temp_folder structure
parent
3de53386
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!8
scanner: added test for the model
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swh/scanner/tests/test_scanner.py
+6
-3
6 additions, 3 deletions
swh/scanner/tests/test_scanner.py
with
6 additions
and
3 deletions
swh/scanner/tests/test_scanner.py
+
6
−
3
View file @
8448ae0a
...
...
@@ -47,10 +47,13 @@ def test_scanner_raise_apierror_input_size_limit(
pids_discovery
(
request
,
aiosession
,
api_url
))
def
test_scanner_get_subpaths
(
tmp_path
,
temp_paths
):
def
test_scanner_get_subpaths
(
temp_folder
,
tmp_path
):
paths
=
temp_folder
[
'
paths
'
].
keys
()
pids
=
temp_folder
[
'
paths
'
].
values
()
for
subpath
,
pid
in
get_subpaths
(
tmp_path
):
assert
subpath
in
temp_paths
[
'
paths
'
]
assert
pid
in
temp_paths
[
'
pids
'
]
assert
subpath
in
paths
assert
pid
in
pids
@pytest.mark.options
(
debug
=
False
)
...
...
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