Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-indexer
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-indexer
Commits
2c231b63
Commit
2c231b63
authored
6 months ago
by
Antoine Lambert
Browse files
Options
Downloads
Patches
Plain Diff
Fix black formatting
parent
5bbcd09c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
swh/indexer/metadata_dictionary/dart.py
+1
-1
1 addition, 1 deletion
swh/indexer/metadata_dictionary/dart.py
swh/indexer/tests/metadata_dictionary/test_nuget.py
+3
-3
3 additions, 3 deletions
swh/indexer/tests/metadata_dictionary/test_nuget.py
with
4 additions
and
4 deletions
swh/indexer/metadata_dictionary/dart.py
+
1
−
1
View file @
2c231b63
...
...
@@ -40,7 +40,7 @@ class PubspecMapping(YamlMapping, SingleFileIntrinsicMapping):
"
name
"
,
"
issue_tracker
"
,
"
platforms
"
,
"
license
"
"
license
"
,
# license will only be used with the SPDX Identifier
]
uri_fields
=
[
"
homepage
"
]
...
...
This diff is collapsed.
Click to expand it.
swh/indexer/tests/metadata_dictionary/test_nuget.py
+
3
−
3
View file @
2c231b63
...
...
@@ -109,7 +109,7 @@ def test_detect_metadata_package_nuspec(filename):
def
test_normalize_license_multiple_licenses_or_delimiter
():
raw_content
=
raw_content
=
b
"""
<?xml version=
"
1.0
"
encoding=
"
utf-8
"
?>
raw_content
=
b
"""
<?xml version=
"
1.0
"
encoding=
"
utf-8
"
?>
<package xmlns=
"
http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd
"
>
<metadata>
<license type=
"
expression
"
>BitTorrent-1.0 or GPL-3.0-with-GCC-exception</license>
...
...
@@ -132,7 +132,7 @@ def test_normalize_license_multiple_licenses_or_delimiter():
def
test_normalize_license_unsupported_delimiter
():
raw_content
=
raw_content
=
b
"""
<?xml version=
"
1.0
"
encoding=
"
utf-8
"
?>
raw_content
=
b
"""
<?xml version=
"
1.0
"
encoding=
"
utf-8
"
?>
<package xmlns=
"
http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd
"
>
<metadata>
<license type=
"
expression
"
>(MIT)</license>
...
...
@@ -151,7 +151,7 @@ def test_normalize_license_unsupported_delimiter():
def
test_copyrightNotice_absolute_uri_property
():
raw_content
=
raw_content
=
b
"""
<?xml version=
"
1.0
"
encoding=
"
utf-8
"
?>
raw_content
=
b
"""
<?xml version=
"
1.0
"
encoding=
"
utf-8
"
?>
<package xmlns=
"
http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd
"
>
<metadata>
<copyright>Copyright 2017-2022</copyright>
...
...
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