Skip to content

Commit 536f5ed

Browse files
committed
Reformat test files as pretty-print json #116
Reference: #116 Signed-off-by: John M. Horan <johnmhoran@gmail.com>
1 parent 3b01c28 commit 536f5ed

14 files changed

+52333
-281
lines changed

tests/data/bitbucket.json

Lines changed: 218 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,218 @@
1-
{"0": {"type": "bitbucket", "namespace": "litmis", "name": "python-itoolkit", "version": null, "qualifiers": {}, "subpath": null, "primary_language": null, "description": null, "release_date": null, "parties": [], "keywords": [], "homepage_url": null, "download_url": null, "api_url": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit", "size": null, "sha1": null, "md5": null, "sha256": null, "sha512": null, "bug_tracking_url": "https://bitbucket.org/litmis/python-itoolkit/issues", "code_view_url": "https://bitbucket.org/litmis/python-itoolkit", "vcs_url": null, "copyright": null, "license_expression": null, "declared_license": null, "notice_text": null, "root_path": null, "dependencies": [], "contains_source_code": null, "source_packages": [], "purl": "pkg:bitbucket/litmis/python-itoolkit", "repository_homepage_url": null, "repository_download_url": null, "api_data_url": null}, "1": {"type": "bitbucket", "namespace": "litmis", "name": "python-itoolkit", "version": "1.2", "qualifiers": {}, "subpath": null, "primary_language": null, "description": null, "release_date": null, "parties": [], "keywords": [], "homepage_url": null, "download_url": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/downloads/python-itoolkit-1.2.tar.gz", "api_url": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit", "size": null, "sha1": null, "md5": null, "sha256": null, "sha512": null, "bug_tracking_url": "https://bitbucket.org/litmis/python-itoolkit/issues", "code_view_url": "https://bitbucket.org/litmis/python-itoolkit/src/1.2", "vcs_url": null, "copyright": null, "license_expression": null, "declared_license": null, "notice_text": null, "root_path": null, "dependencies": [], "contains_source_code": null, "source_packages": [], "purl": "pkg:bitbucket/litmis/python-itoolkit@1.2", "repository_homepage_url": null, "repository_download_url": null, "api_data_url": null}, "2": {"type": "bitbucket", "namespace": "litmis", "name": "python-itoolkit", "version": "1.3", "qualifiers": {}, "subpath": null, "primary_language": null, "description": null, "release_date": null, "parties": [], "keywords": [], "homepage_url": null, "download_url": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/downloads/python-itoolkit-1.3.tar.gz", "api_url": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit", "size": null, "sha1": null, "md5": null, "sha256": null, "sha512": null, "bug_tracking_url": "https://bitbucket.org/litmis/python-itoolkit/issues", "code_view_url": "https://bitbucket.org/litmis/python-itoolkit/src/1.3", "vcs_url": null, "copyright": null, "license_expression": null, "declared_license": null, "notice_text": null, "root_path": null, "dependencies": [], "contains_source_code": null, "source_packages": [], "purl": "pkg:bitbucket/litmis/python-itoolkit@1.3", "repository_homepage_url": null, "repository_download_url": null, "api_data_url": null}, "3": {"type": "bitbucket", "namespace": "litmis", "name": "python-itoolkit", "version": "1.4.0", "qualifiers": {}, "subpath": null, "primary_language": null, "description": null, "release_date": null, "parties": [], "keywords": [], "homepage_url": null, "download_url": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/downloads/python-itoolkit-1.4.0.tar.gz", "api_url": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit", "size": null, "sha1": null, "md5": null, "sha256": null, "sha512": null, "bug_tracking_url": "https://bitbucket.org/litmis/python-itoolkit/issues", "code_view_url": "https://bitbucket.org/litmis/python-itoolkit/src/1.4.0", "vcs_url": null, "copyright": null, "license_expression": null, "declared_license": null, "notice_text": null, "root_path": null, "dependencies": [], "contains_source_code": null, "source_packages": [], "purl": "pkg:bitbucket/litmis/python-itoolkit@1.4.0", "repository_homepage_url": null, "repository_download_url": null, "api_data_url": null}, "4": {"type": "bitbucket", "namespace": "litmis", "name": "python-itoolkit", "version": "1.5.0", "qualifiers": {}, "subpath": null, "primary_language": null, "description": null, "release_date": null, "parties": [], "keywords": [], "homepage_url": null, "download_url": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/downloads/python-itoolkit-1.5.0.tar.gz", "api_url": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit", "size": null, "sha1": null, "md5": null, "sha256": null, "sha512": null, "bug_tracking_url": "https://bitbucket.org/litmis/python-itoolkit/issues", "code_view_url": "https://bitbucket.org/litmis/python-itoolkit/src/1.5.0", "vcs_url": null, "copyright": null, "license_expression": null, "declared_license": null, "notice_text": null, "root_path": null, "dependencies": [], "contains_source_code": null, "source_packages": [], "purl": "pkg:bitbucket/litmis/python-itoolkit@1.5.0", "repository_homepage_url": null, "repository_download_url": null, "api_data_url": null}, "5": {"type": "bitbucket", "namespace": "litmis", "name": "python-itoolkit", "version": "1.5.1", "qualifiers": {}, "subpath": null, "primary_language": null, "description": null, "release_date": null, "parties": [], "keywords": [], "homepage_url": null, "download_url": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/downloads/python-itoolkit-1.5.1.tar.gz", "api_url": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit", "size": null, "sha1": null, "md5": null, "sha256": null, "sha512": null, "bug_tracking_url": "https://bitbucket.org/litmis/python-itoolkit/issues", "code_view_url": "https://bitbucket.org/litmis/python-itoolkit/src/1.5.1", "vcs_url": null, "copyright": null, "license_expression": null, "declared_license": null, "notice_text": null, "root_path": null, "dependencies": [], "contains_source_code": null, "source_packages": [], "purl": "pkg:bitbucket/litmis/python-itoolkit@1.5.1", "repository_homepage_url": null, "repository_download_url": null, "api_data_url": null}}
1+
{
2+
"0": {
3+
"type": "bitbucket",
4+
"namespace": "litmis",
5+
"name": "python-itoolkit",
6+
"version": null,
7+
"qualifiers": {},
8+
"subpath": null,
9+
"primary_language": null,
10+
"description": null,
11+
"release_date": null,
12+
"parties": [],
13+
"keywords": [],
14+
"homepage_url": null,
15+
"download_url": null,
16+
"api_url": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit",
17+
"size": null,
18+
"sha1": null,
19+
"md5": null,
20+
"sha256": null,
21+
"sha512": null,
22+
"bug_tracking_url": "https://bitbucket.org/litmis/python-itoolkit/issues",
23+
"code_view_url": "https://bitbucket.org/litmis/python-itoolkit",
24+
"vcs_url": null,
25+
"copyright": null,
26+
"license_expression": null,
27+
"declared_license": null,
28+
"notice_text": null,
29+
"root_path": null,
30+
"dependencies": [],
31+
"contains_source_code": null,
32+
"source_packages": [],
33+
"purl": "pkg:bitbucket/litmis/python-itoolkit",
34+
"repository_homepage_url": null,
35+
"repository_download_url": null,
36+
"api_data_url": null
37+
},
38+
"1": {
39+
"type": "bitbucket",
40+
"namespace": "litmis",
41+
"name": "python-itoolkit",
42+
"version": "1.2",
43+
"qualifiers": {},
44+
"subpath": null,
45+
"primary_language": null,
46+
"description": null,
47+
"release_date": null,
48+
"parties": [],
49+
"keywords": [],
50+
"homepage_url": null,
51+
"download_url": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/downloads/python-itoolkit-1.2.tar.gz",
52+
"api_url": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit",
53+
"size": null,
54+
"sha1": null,
55+
"md5": null,
56+
"sha256": null,
57+
"sha512": null,
58+
"bug_tracking_url": "https://bitbucket.org/litmis/python-itoolkit/issues",
59+
"code_view_url": "https://bitbucket.org/litmis/python-itoolkit/src/1.2",
60+
"vcs_url": null,
61+
"copyright": null,
62+
"license_expression": null,
63+
"declared_license": null,
64+
"notice_text": null,
65+
"root_path": null,
66+
"dependencies": [],
67+
"contains_source_code": null,
68+
"source_packages": [],
69+
"purl": "pkg:bitbucket/litmis/python-itoolkit@1.2",
70+
"repository_homepage_url": null,
71+
"repository_download_url": null,
72+
"api_data_url": null
73+
},
74+
"2": {
75+
"type": "bitbucket",
76+
"namespace": "litmis",
77+
"name": "python-itoolkit",
78+
"version": "1.3",
79+
"qualifiers": {},
80+
"subpath": null,
81+
"primary_language": null,
82+
"description": null,
83+
"release_date": null,
84+
"parties": [],
85+
"keywords": [],
86+
"homepage_url": null,
87+
"download_url": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/downloads/python-itoolkit-1.3.tar.gz",
88+
"api_url": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit",
89+
"size": null,
90+
"sha1": null,
91+
"md5": null,
92+
"sha256": null,
93+
"sha512": null,
94+
"bug_tracking_url": "https://bitbucket.org/litmis/python-itoolkit/issues",
95+
"code_view_url": "https://bitbucket.org/litmis/python-itoolkit/src/1.3",
96+
"vcs_url": null,
97+
"copyright": null,
98+
"license_expression": null,
99+
"declared_license": null,
100+
"notice_text": null,
101+
"root_path": null,
102+
"dependencies": [],
103+
"contains_source_code": null,
104+
"source_packages": [],
105+
"purl": "pkg:bitbucket/litmis/python-itoolkit@1.3",
106+
"repository_homepage_url": null,
107+
"repository_download_url": null,
108+
"api_data_url": null
109+
},
110+
"3": {
111+
"type": "bitbucket",
112+
"namespace": "litmis",
113+
"name": "python-itoolkit",
114+
"version": "1.4.0",
115+
"qualifiers": {},
116+
"subpath": null,
117+
"primary_language": null,
118+
"description": null,
119+
"release_date": null,
120+
"parties": [],
121+
"keywords": [],
122+
"homepage_url": null,
123+
"download_url": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/downloads/python-itoolkit-1.4.0.tar.gz",
124+
"api_url": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit",
125+
"size": null,
126+
"sha1": null,
127+
"md5": null,
128+
"sha256": null,
129+
"sha512": null,
130+
"bug_tracking_url": "https://bitbucket.org/litmis/python-itoolkit/issues",
131+
"code_view_url": "https://bitbucket.org/litmis/python-itoolkit/src/1.4.0",
132+
"vcs_url": null,
133+
"copyright": null,
134+
"license_expression": null,
135+
"declared_license": null,
136+
"notice_text": null,
137+
"root_path": null,
138+
"dependencies": [],
139+
"contains_source_code": null,
140+
"source_packages": [],
141+
"purl": "pkg:bitbucket/litmis/python-itoolkit@1.4.0",
142+
"repository_homepage_url": null,
143+
"repository_download_url": null,
144+
"api_data_url": null
145+
},
146+
"4": {
147+
"type": "bitbucket",
148+
"namespace": "litmis",
149+
"name": "python-itoolkit",
150+
"version": "1.5.0",
151+
"qualifiers": {},
152+
"subpath": null,
153+
"primary_language": null,
154+
"description": null,
155+
"release_date": null,
156+
"parties": [],
157+
"keywords": [],
158+
"homepage_url": null,
159+
"download_url": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/downloads/python-itoolkit-1.5.0.tar.gz",
160+
"api_url": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit",
161+
"size": null,
162+
"sha1": null,
163+
"md5": null,
164+
"sha256": null,
165+
"sha512": null,
166+
"bug_tracking_url": "https://bitbucket.org/litmis/python-itoolkit/issues",
167+
"code_view_url": "https://bitbucket.org/litmis/python-itoolkit/src/1.5.0",
168+
"vcs_url": null,
169+
"copyright": null,
170+
"license_expression": null,
171+
"declared_license": null,
172+
"notice_text": null,
173+
"root_path": null,
174+
"dependencies": [],
175+
"contains_source_code": null,
176+
"source_packages": [],
177+
"purl": "pkg:bitbucket/litmis/python-itoolkit@1.5.0",
178+
"repository_homepage_url": null,
179+
"repository_download_url": null,
180+
"api_data_url": null
181+
},
182+
"5": {
183+
"type": "bitbucket",
184+
"namespace": "litmis",
185+
"name": "python-itoolkit",
186+
"version": "1.5.1",
187+
"qualifiers": {},
188+
"subpath": null,
189+
"primary_language": null,
190+
"description": null,
191+
"release_date": null,
192+
"parties": [],
193+
"keywords": [],
194+
"homepage_url": null,
195+
"download_url": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/downloads/python-itoolkit-1.5.1.tar.gz",
196+
"api_url": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit",
197+
"size": null,
198+
"sha1": null,
199+
"md5": null,
200+
"sha256": null,
201+
"sha512": null,
202+
"bug_tracking_url": "https://bitbucket.org/litmis/python-itoolkit/issues",
203+
"code_view_url": "https://bitbucket.org/litmis/python-itoolkit/src/1.5.1",
204+
"vcs_url": null,
205+
"copyright": null,
206+
"license_expression": null,
207+
"declared_license": null,
208+
"notice_text": null,
209+
"root_path": null,
210+
"dependencies": [],
211+
"contains_source_code": null,
212+
"source_packages": [],
213+
"purl": "pkg:bitbucket/litmis/python-itoolkit@1.5.1",
214+
"repository_homepage_url": null,
215+
"repository_download_url": null,
216+
"api_data_url": null
217+
}
218+
}

tests/data/bitbucket_mock_data.json

Lines changed: 124 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,124 @@
1-
{"scm": "git", "website": "", "has_wiki": true, "uuid": "{6bbee65f-ec4c-4c13-950e-d5715a2ad85b}", "links": {"watchers": {"href": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/watchers"}, "branches": {"href": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/refs/branches"}, "tags": {"href": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/refs/tags"}, "commits": {"href": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/commits"}, "clone": [{"href": "https://bitbucket.org/litmis/python-itoolkit.git", "name": "https"}, {"href": "git@bitbucket.org:litmis/python-itoolkit.git", "name": "ssh"}], "self": {"href": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit"}, "source": {"href": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/src"}, "html": {"href": "https://bitbucket.org/litmis/python-itoolkit"}, "avatar": {"href": "https://bytebucket.org/ravatar/%7B6bbee65f-ec4c-4c13-950e-d5715a2ad85b%7D?ts=python"}, "hooks": {"href": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/hooks"}, "forks": {"href": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/forks"}, "downloads": {"href": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/downloads"}, "issues": {"href": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/issues"}, "pullrequests": {"href": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/pullrequests"}}, "fork_policy": "allow_forks", "full_name": "litmis/python-itoolkit", "name": "python-itoolkit", "project": {"links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/litmis/projects/IIOSP"}, "html": {"href": "https://bitbucket.org/litmis/workspace/projects/IIOSP"}, "avatar": {"href": "https://bitbucket.org/account/user/litmis/projects/IIOSP/avatar/32?ts=1484155108"}}, "type": "project", "name": "Open Source Projects for IBM i", "key": "IIOSP", "uuid": "{ddb5632c-37eb-4e68-b5c4-bcd0d3953234}"}, "language": "python", "created_on": "2016-06-13T15:29:37.077879+00:00", "mainbranch": {"type": "branch", "name": "master"}, "workspace": {"slug": "litmis", "type": "workspace", "name": "litmis", "links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/litmis"}, "html": {"href": "https://bitbucket.org/litmis/"}, "avatar": {"href": "https://bitbucket.org/workspaces/litmis/avatar/?ts=1543631786"}}, "uuid": "{f6c9fd02-930e-489e-993c-d96793cd67f6}"}, "has_issues": true, "owner": {"username": "litmis", "display_name": "litmis", "type": "team", "uuid": "{f6c9fd02-930e-489e-993c-d96793cd67f6}", "links": {"self": {"href": "https://api.bitbucket.org/2.0/teams/%7Bf6c9fd02-930e-489e-993c-d96793cd67f6%7D"}, "html": {"href": "https://bitbucket.org/%7Bf6c9fd02-930e-489e-993c-d96793cd67f6%7D/"}, "avatar": {"href": "https://bitbucket.org/account/litmis/avatar/"}}}, "updated_on": "2018-12-21T19:28:26.966898+00:00", "size": 1205097, "type": "repository", "slug": "python-itoolkit", "is_private": false, "description": "Repository for Python's iToolKit for IBM i."}
1+
{
2+
"scm": "git",
3+
"website": "",
4+
"has_wiki": true,
5+
"uuid": "{6bbee65f-ec4c-4c13-950e-d5715a2ad85b}",
6+
"links": {
7+
"watchers": {
8+
"href": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/watchers"
9+
},
10+
"branches": {
11+
"href": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/refs/branches"
12+
},
13+
"tags": {
14+
"href": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/refs/tags"
15+
},
16+
"commits": {
17+
"href": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/commits"
18+
},
19+
"clone": [
20+
{
21+
"href": "https://bitbucket.org/litmis/python-itoolkit.git",
22+
"name": "https"
23+
},
24+
{
25+
"href": "git@bitbucket.org:litmis/python-itoolkit.git",
26+
"name": "ssh"
27+
}
28+
],
29+
"self": {
30+
"href": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit"
31+
},
32+
"source": {
33+
"href": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/src"
34+
},
35+
"html": {
36+
"href": "https://bitbucket.org/litmis/python-itoolkit"
37+
},
38+
"avatar": {
39+
"href": "https://bytebucket.org/ravatar/%7B6bbee65f-ec4c-4c13-950e-d5715a2ad85b%7D?ts=python"
40+
},
41+
"hooks": {
42+
"href": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/hooks"
43+
},
44+
"forks": {
45+
"href": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/forks"
46+
},
47+
"downloads": {
48+
"href": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/downloads"
49+
},
50+
"issues": {
51+
"href": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/issues"
52+
},
53+
"pullrequests": {
54+
"href": "https://api.bitbucket.org/2.0/repositories/litmis/python-itoolkit/pullrequests"
55+
}
56+
},
57+
"fork_policy": "allow_forks",
58+
"full_name": "litmis/python-itoolkit",
59+
"name": "python-itoolkit",
60+
"project": {
61+
"links": {
62+
"self": {
63+
"href": "https://api.bitbucket.org/2.0/workspaces/litmis/projects/IIOSP"
64+
},
65+
"html": {
66+
"href": "https://bitbucket.org/litmis/workspace/projects/IIOSP"
67+
},
68+
"avatar": {
69+
"href": "https://bitbucket.org/account/user/litmis/projects/IIOSP/avatar/32?ts=1484155108"
70+
}
71+
},
72+
"type": "project",
73+
"name": "Open Source Projects for IBM i",
74+
"key": "IIOSP",
75+
"uuid": "{ddb5632c-37eb-4e68-b5c4-bcd0d3953234}"
76+
},
77+
"language": "python",
78+
"created_on": "2016-06-13T15:29:37.077879+00:00",
79+
"mainbranch": {
80+
"type": "branch",
81+
"name": "master"
82+
},
83+
"workspace": {
84+
"slug": "litmis",
85+
"type": "workspace",
86+
"name": "litmis",
87+
"links": {
88+
"self": {
89+
"href": "https://api.bitbucket.org/2.0/workspaces/litmis"
90+
},
91+
"html": {
92+
"href": "https://bitbucket.org/litmis/"
93+
},
94+
"avatar": {
95+
"href": "https://bitbucket.org/workspaces/litmis/avatar/?ts=1543631786"
96+
}
97+
},
98+
"uuid": "{f6c9fd02-930e-489e-993c-d96793cd67f6}"
99+
},
100+
"has_issues": true,
101+
"owner": {
102+
"username": "litmis",
103+
"display_name": "litmis",
104+
"type": "team",
105+
"uuid": "{f6c9fd02-930e-489e-993c-d96793cd67f6}",
106+
"links": {
107+
"self": {
108+
"href": "https://api.bitbucket.org/2.0/teams/%7Bf6c9fd02-930e-489e-993c-d96793cd67f6%7D"
109+
},
110+
"html": {
111+
"href": "https://bitbucket.org/%7Bf6c9fd02-930e-489e-993c-d96793cd67f6%7D/"
112+
},
113+
"avatar": {
114+
"href": "https://bitbucket.org/account/litmis/avatar/"
115+
}
116+
}
117+
},
118+
"updated_on": "2018-12-21T19:28:26.966898+00:00",
119+
"size": 1205097,
120+
"type": "repository",
121+
"slug": "python-itoolkit",
122+
"is_private": false,
123+
"description": "Repository for Python's iToolKit for IBM i."
124+
}

tests/data/bitbucket_mock_release_data.json

Lines changed: 548 additions & 1 deletion
Large diffs are not rendered by default.

tests/data/cargo.json

Lines changed: 2270 additions & 1 deletion
Large diffs are not rendered by default.

tests/data/cargo_mock_data.json

Lines changed: 2321 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)