Add tests for More and Random methods
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vendored
+151
@@ -0,0 +1,151 @@
|
||||
{
|
||||
"json": {
|
||||
"errors": [],
|
||||
"data": {
|
||||
"things": [
|
||||
{
|
||||
"kind": "t1",
|
||||
"data": {
|
||||
"total_awards_received": 0,
|
||||
"approved_at_utc": null,
|
||||
"edited": false,
|
||||
"mod_reason_by": null,
|
||||
"banned_by": null,
|
||||
"author_flair_type": "text",
|
||||
"removal_reason": null,
|
||||
"link_id": "t3_123",
|
||||
"author_flair_template_id": null,
|
||||
"likes": null,
|
||||
"replies": "",
|
||||
"user_reports": [],
|
||||
"saved": false,
|
||||
"id": "def",
|
||||
"banned_at_utc": null,
|
||||
"mod_reason_title": null,
|
||||
"gilded": 0,
|
||||
"archived": false,
|
||||
"no_follow": false,
|
||||
"author": "testuser1",
|
||||
"can_mod_post": false,
|
||||
"send_replies": true,
|
||||
"parent_id": "t1_abc",
|
||||
"score": 5,
|
||||
"author_fullname": "t2_user1",
|
||||
"approved_by": null,
|
||||
"mod_note": null,
|
||||
"all_awardings": [],
|
||||
"subreddit_id": "t5_2qh1i",
|
||||
"body": "Wow, I came here to say exactly this and figured it would be buried. Pleasantly shocked to see your comment as the top comment! So. Good. Thanks, random internet friend!",
|
||||
"awarders": [],
|
||||
"downs": 0,
|
||||
"author_flair_css_class": null,
|
||||
"name": "t1_def",
|
||||
"author_patreon_flair": false,
|
||||
"collapsed": false,
|
||||
"author_flair_richtext": [],
|
||||
"is_submitter": false,
|
||||
"body_html": "<div class=\"md\"><p>Wow, I came here to say exactly this and figured it would be buried. Pleasantly shocked to see your comment as the top comment! So. Good. Thanks, random internet friend!</p>\n</div>",
|
||||
"gildings": {},
|
||||
"collapsed_reason": null,
|
||||
"distinguished": null,
|
||||
"associated_award": null,
|
||||
"stickied": false,
|
||||
"author_premium": false,
|
||||
"can_gild": true,
|
||||
"top_awarded_type": null,
|
||||
"author_flair_text_color": null,
|
||||
"score_hidden": false,
|
||||
"permalink": "/r/AskReddit/comments/123/which_scene_from_an_animated_film_will_always_be/def/",
|
||||
"num_reports": null,
|
||||
"locked": false,
|
||||
"report_reasons": null,
|
||||
"created": 1595301409.0,
|
||||
"subreddit": "AskReddit",
|
||||
"author_flair_text": null,
|
||||
"treatment_tags": [],
|
||||
"created_utc": 1595272609.0,
|
||||
"subreddit_name_prefixed": "r/AskReddit",
|
||||
"controversiality": 0,
|
||||
"depth": 1,
|
||||
"author_flair_background_color": null,
|
||||
"collapsed_because_crowd_control": null,
|
||||
"mod_reports": [],
|
||||
"subreddit_type": "public",
|
||||
"ups": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"kind": "t1",
|
||||
"data": {
|
||||
"total_awards_received": 0,
|
||||
"approved_at_utc": null,
|
||||
"edited": false,
|
||||
"mod_reason_by": null,
|
||||
"banned_by": null,
|
||||
"author_flair_type": "text",
|
||||
"removal_reason": null,
|
||||
"link_id": "t3_123",
|
||||
"author_flair_template_id": null,
|
||||
"likes": null,
|
||||
"replies": "",
|
||||
"user_reports": [],
|
||||
"saved": false,
|
||||
"id": "ghi",
|
||||
"banned_at_utc": null,
|
||||
"mod_reason_title": null,
|
||||
"gilded": 0,
|
||||
"archived": false,
|
||||
"no_follow": true,
|
||||
"author": "testuser2",
|
||||
"can_mod_post": false,
|
||||
"send_replies": true,
|
||||
"parent_id": "t1_def",
|
||||
"score": 1,
|
||||
"author_fullname": "t2_user2",
|
||||
"approved_by": null,
|
||||
"mod_note": null,
|
||||
"all_awardings": [],
|
||||
"subreddit_id": "t5_2qh1i",
|
||||
"body": "Oh my god yes best movie ever love that scene",
|
||||
"awarders": [],
|
||||
"downs": 0,
|
||||
"author_flair_css_class": null,
|
||||
"name": "t1_ghi",
|
||||
"author_patreon_flair": false,
|
||||
"collapsed": false,
|
||||
"author_flair_richtext": [],
|
||||
"is_submitter": false,
|
||||
"body_html": "<div class=\"md\"><p>Oh my god yes best movie ever love that scene</p>\n</div>",
|
||||
"gildings": {},
|
||||
"collapsed_reason": null,
|
||||
"distinguished": null,
|
||||
"associated_award": null,
|
||||
"stickied": false,
|
||||
"author_premium": false,
|
||||
"can_gild": true,
|
||||
"top_awarded_type": null,
|
||||
"author_flair_text_color": null,
|
||||
"score_hidden": false,
|
||||
"permalink": "/r/AskReddit/comments/123/which_scene_from_an_animated_film_will_always_be/ghi/",
|
||||
"num_reports": null,
|
||||
"locked": false,
|
||||
"report_reasons": null,
|
||||
"created": 1595308578.0,
|
||||
"subreddit": "AskReddit",
|
||||
"author_flair_text": null,
|
||||
"treatment_tags": [],
|
||||
"created_utc": 1595279778.0,
|
||||
"subreddit_name_prefixed": "r/AskReddit",
|
||||
"controversiality": 0,
|
||||
"depth": 1,
|
||||
"author_flair_background_color": null,
|
||||
"collapsed_because_crowd_control": null,
|
||||
"mod_reports": [],
|
||||
"subreddit_type": "public",
|
||||
"ups": 1
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user