Skip to content

Commit b1819fe

Browse files
committed
Use mapping for package qualifiers in test data
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 9b2513a commit b1819fe

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

tests/formattedcode/data/csv/flatten_scan/full.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
"namespace": null,
172172
"name": null,
173173
"version": null,
174-
"qualifiers": null,
174+
"qualifiers": {},
175175
"subpath": null,
176176
"primary_language": null,
177177
"description": null,
@@ -1638,7 +1638,7 @@
16381638
"namespace": null,
16391639
"name": "cookie-signature",
16401640
"version": "1.0.3",
1641-
"qualifiers": null,
1641+
"qualifiers": {},
16421642
"subpath": null,
16431643
"primary_language": "JavaScript",
16441644
"description": "Sign and unsign cookies",

tests/formattedcode/data/csv/flatten_scan/package_license_value_null.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"namespace": null,
2626
"name": "cookie-signature",
2727
"version": "1.0.3",
28-
"qualifiers": null,
28+
"qualifiers": {},
2929
"subpath": null,
3030
"primary_language": "JavaScript",
3131
"description": "Sign and unsign cookies",

tests/formattedcode/data/csv/non-standard/identified.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
"namespace": "log4j",
131131
"name": "apache-log4j-extras",
132132
"version": "1.1",
133-
"qualifiers": null,
133+
"qualifiers": {},
134134
"subpath": null,
135135
"external_references": [],
136136
"created_date": "2015-07-21T12:04:46.038454",

tests/packagedcode/data/models/nested-npm-packages.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"namespace": null,
3131
"name": "test-package",
3232
"version": "0.0.1",
33-
"qualifiers": null,
33+
"qualifiers": {},
3434
"subpath": null,
3535
"primary_language": "JavaScript",
3636
"description": null,
@@ -86,7 +86,7 @@
8686
"namespace": null,
8787
"name": "bar",
8888
"version": "0.0.1",
89-
"qualifiers": null,
89+
"qualifiers": {},
9090
"subpath": null,
9191
"primary_language": "JavaScript",
9292
"description": null,
@@ -136,7 +136,7 @@
136136
"namespace": null,
137137
"name": "foo",
138138
"version": "0.0.1",
139-
"qualifiers": null,
139+
"qualifiers": {},
140140
"subpath": null,
141141
"primary_language": "JavaScript",
142142
"description": null,
@@ -192,7 +192,7 @@
192192
"namespace": null,
193193
"name": "bar",
194194
"version": "0.0.1",
195-
"qualifiers": null,
195+
"qualifiers": {},
196196
"subpath": null,
197197
"primary_language": "JavaScript",
198198
"description": null,

tests/packagedcode/data/pypi/3to2/expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"namespace": null,
44
"name": "3to2",
55
"version": "1.1.1",
6-
"qualifiers": null,
6+
"qualifiers": {},
77
"subpath": null,
88
"primary_language": "Python",
99
"description": "Refactors valid 3.x syntax into valid 2.x syntax, if a syntactical conversion is possible\nDownload\n========\nRelease for 2.7 and 3.x (last version I tested was 3.4.3): https://pypi.python.org/pypi/3to2\nAbstract\n========\nlib3to2 is a set of fixers that are intended to backport code written for\nPython version 3.x into Python version 2.x. The final target 2.x version is\nthe latest version of the 2.7 branch, as that is the last release in the Python\n2.x branch. Some attempts have been made, however, to make code compatible as\nmuch as possible with versions of Python back to 2.5, and bug reports are still\nwelcome for Python features only present in 2.6+ that are not addressed by\nlib3to2.\nThis project came about as a Google Summer of Code (TM) project in 2009.\nStatus\n======\nBecause of the nature of the subject matter, 3to2 is not perfect, so check all\noutput manually. 3to2 does the bulk of the work, but there is code that simply\ncannot be converted into a Python 2 equivalent for one reason or another.\n3to2 will either produce working Python 2 code or warn about why it did not.\nAny other behavior is a bug and should be reported.\nlib3to2's fixers are somewhat well-tested individually, but there is no testing\nthat is done on interactions between multiple fixers, so most of the bugs in\nthe future will likely be found there.\nIntention\n=========\nlib3to2 is intended to be a tool in the process of developing code that is\nbackwards-compatible between Python 3 and Python 2. It is not intended to be a\ncomplete solution for directly backporting Python 3 code, though it can often\nbe used for this purpose without issue. Sufficiently large packages should be\ndeveloped with lib3to2 used throughout the process to avoid backwards-\nincompatible code from becoming too embedded.\nThere are some features of Python 3 that have no equivalent in Python 2, and\nthough lib3to2 tries to fix as many of these as it can, some features are\nbeyond its grasp. This is especially true of features not readily detectable\nby their syntax alone and extremely subtle features, so make sure that code\nusing lib3to2 is thoroughly tested.\nRepository\n==========\nlib3to2 resides at http://bitbucket.org/amentajo/lib3to2, where the bug tracker\ncan be found at http://bitbucket.org/amentajo/lib3to2/issues\nUsage\n=====\nRun \"./3to2\"to convert stdin (\"-\"), files or directories given as\narguments. By default, the tool outputs a unified diff-formatted patch on\nstandard output and a \"what was changed\"summary on standard error, but the\n\"-w\"option can be given to write back converted files, creating\n\".bak\"-named backup files.\nIf you are root, you can also install with \"./setup.py build\"and\n\"./setup.py install\"(\"make install\"does this for you).\nThis branch of 3to2 must be run with Python 3.\nTo install locally (used for running tests as a non-privileged user), the\nscripts assume you are using python3.1. Modify accordingly if you are not.\nRelationship with lib2to3\n=========================\nSome of the fixers for lib3to2 are directly copy-pasted from their 2to3\nequivalent, with the element of PATTERN and the corresponding transformation\nswitched places. Most fixers written for this program with a corresponding\n2to3 fixer started from a clone of the 2to3 fixer, then modifying that fixer to\nwork in reverse. I do not claim original authorship of these fixers, but I do\nclaim that they will work for 3to2, independent of how they work for 2to3.\nIn addition, this program depends on lib2to3 to implement fixers, test cases,\nrefactoring, and grammar. Some portions of lib2to3 were modified to be more\ngeneric to support lib3to2's calls.\nYou should use the latest version of lib2to3 from the Python sandbox rather\nthan the version (if any) that comes with Python. As a convenience,\n\"two2three\"from the Python Package Index is a recent enough version of lib2to3\nrenamed to avoid conflicts. To use this package, replace all usage of\n\"lib2to3\"with \"two2three\"within the 3to2 source files after installing\n\"two2three\"from the PyPI. Depending on the developer's mood, a version of\n3to2 may be provided with this change already made.",

tests/packagedcode/data/pypi/setup.py/pluggy_setup.py-expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"namespace": null,
44
"name": "pluggy",
55
"version": null,
6-
"qualifiers": null,
6+
"qualifiers": {},
77
"subpath": null,
88
"primary_language": "Python",
99
"description": "plugin and hook calling mechanisms for python",

tests/packagedcode/data/pypi/vmock/expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"namespace": null,
44
"name": "vmock",
55
"version": "0.1",
6-
"qualifiers": null,
6+
"qualifiers": {},
77
"subpath": null,
88
"primary_language": "Python",
99
"description": "Advanced Mock library following record and replay approach.",

tests/packagedcode/data/rubygems/package/m2r-2.1.0.gem.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"namespace": null,
55
"name": "m2r",
66
"version": "2.1.0",
7-
"qualifiers": null,
7+
"qualifiers": {},
88
"subpath": null,
99
"primary_language": "Ruby",
1010
"description": "Mongrel2 interface and handler library for Ruby.\nMongrel2 Rack handler and pure handler. Works with Rack, so it works with Rails!",

tests/scancode/data/only_findings/expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"namespace": null,
1212
"name": null,
1313
"version": null,
14-
"qualifiers": null,
14+
"qualifiers": {},
1515
"subpath": null,
1616
"primary_language": null,
1717
"contains_source_code": null,

0 commit comments

Comments
 (0)