Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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-web
Commits
85bdae58
Verified
Commit
85bdae58
authored
3 days ago
by
Antoine Lambert
Browse files
Options
Downloads
Patches
Plain Diff
utils: Fix flaky tests
parent
d957c617
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1398
package.json: Bump dependencies
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swh/web/utils/tests/test_identifiers.py
+8
-2
8 additions, 2 deletions
swh/web/utils/tests/test_identifiers.py
with
8 additions
and
2 deletions
swh/web/utils/tests/test_identifiers.py
+
8
−
2
View file @
85bdae58
...
...
@@ -240,7 +240,10 @@ def test_get_swhids_info_directory_context(archive_data, directory_with_subdirs)
}
def
test_get_swhids_info_revision_context
(
archive_data
,
revision
):
def
test_get_swhids_info_revision_context
(
archive_data
,
revision_with_files_in_target_directory
):
revision
=
revision_with_files_in_target_directory
revision_data
=
archive_data
.
revision_get
(
revision
)
directory
=
revision_data
[
"
directory
"
]
dir_content
=
archive_data
.
directory_ls
(
directory
)
...
...
@@ -765,7 +768,10 @@ def test_resolve_swhid_with_malformed_origin_url(archive_data, directory):
assert
origin_url
in
resolved_swhid
[
"
browse_url
"
]
def
test_resolve_dir_entry_swhid_with_anchor_revision
(
archive_data
,
revision
):
def
test_resolve_dir_entry_swhid_with_anchor_revision
(
archive_data
,
revision_with_files_in_target_directory
):
revision
=
revision_with_files_in_target_directory
revision_data
=
archive_data
.
revision_get
(
revision
)
directory
=
revision_data
[
"
directory
"
]
dir_content
=
archive_data
.
directory_ls
(
directory
)
...
...
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