File tree Expand file tree Collapse file tree 1 file changed +8
-14
lines changed
Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change 55 _dependencies ,
66 _normalize ,
77 _packages_from_json ,
8- _packages_to_markdown
8+ _packages_to_markdown ,
99)
1010
1111
@@ -44,27 +44,21 @@ def test_dependencies(toml, expected):
4444@pytest .mark .parametrize (
4545 "licenses,expected" ,
4646 [
47- (
48- "BSD License; MIT License;" ,
49- "BSD"
50- ),
51- (
52- "MIT License; Mozilla Public License 2.0 (MPL 2.0)" ,
53- "MIT"
54- ),
47+ ("BSD License; MIT License;" , "BSD" ),
48+ ("MIT License; Mozilla Public License 2.0 (MPL 2.0)" , "MIT" ),
5549 (
5650 "Mozilla Public License 2.0 (MPL 2.0); GNU Lesser General Public License v2 (LGPLv2)" ,
57- "MPLv2"
51+ "MPLv2" ,
5852 ),
5953 (
6054 "GNU Lesser General Public License v2 (LGPLv2); GNU General Public License v2 (GPLv2)" ,
61- "LGPLv2"
55+ "LGPLv2" ,
6256 ),
6357 (
6458 "GNU General Public License v2 (GPLv2); GNU General Public License v3 (GPLv3)" ,
65- "GPLv2"
66- )
67- ]
59+ "GPLv2" ,
60+ ),
61+ ],
6862)
6963def test_normalize (licenses , expected ):
7064 actual = _normalize (licenses )
You can’t perform that action at this time.
0 commit comments