Add good bit of functionality, some tests

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian
2020-04-29 15:59:18 -04:00
parent 3c7aee142d
commit 9a171b1c90
21 changed files with 2345 additions and 40 deletions
+72
View File
@@ -0,0 +1,72 @@
{
"total_awards_received": 0,
"approved_at_utc": null,
"awarders": [],
"mod_reason_by": null,
"banned_by": null,
"replies": "",
"author_flair_type": "richtext",
"removal_reason": null,
"link_id": "t3_link1",
"author_flair_template_id": "024b2b66-05ca-11e1-96f4-12313d096aae",
"likes": true,
"no_follow": false,
"author_fullname": "t2_user1",
"user_reports": [],
"body_html": "<div class=\"md\"><p>test comment</p>\n</div>",
"send_replies": true,
"saved": false,
"id": "test2",
"banned_at_utc": null,
"mod_reason_title": null,
"gilded": 0,
"archived": false,
"report_reasons": null,
"author": "reddit_username",
"can_mod_post": false,
"ups": 1,
"parent_id": "t1_test",
"score": 1,
"approved_by": null,
"author_premium": false,
"all_awardings": [],
"subreddit_id": "t5_test",
"body": "test comment",
"edited": false,
"downs": 0,
"author_flair_css_class": null,
"is_submitter": false,
"collapsed": false,
"author_flair_richtext": [
{
"e": "text",
"t": "Beginner - Strength"
}
],
"author_patreon_flair": false,
"collapsed_reason": null,
"gildings": {},
"associated_award": null,
"stickied": false,
"subreddit_type": "public",
"can_gild": false,
"subreddit": "subreddit",
"author_flair_text_color": "dark",
"score_hidden": false,
"permalink": "/r/subreddit/comments/test1/some_thread/test2/",
"num_reports": null,
"locked": false,
"name": "t1_test2",
"created": 1588147787,
"author_flair_text": "Flair",
"treatment_tags": [],
"rte_mode": "markdown",
"created_utc": 1588118987,
"subreddit_name_prefixed": "r/subreddit",
"controversiality": 0,
"author_flair_background_color": null,
"collapsed_because_crowd_control": null,
"mod_reports": [],
"mod_note": null,
"distinguished": null
}
+30
View File
@@ -0,0 +1,30 @@
[
{
"allowable_content": "all",
"text": "Beginner",
"text_color": "dark",
"mod_only": false,
"background_color": "",
"id": "b8a1c822-3feb-11e8-88e1-0e5f55d58ce0",
"css_class": "Beginner1",
"max_emojis": 10,
"richtext": [],
"text_editable": false,
"override_css": false,
"type": "text"
},
{
"allowable_content": "all",
"text": "Moderator",
"text_color": "dark",
"mod_only": true,
"background_color": "",
"id": "b8ea0fce-3feb-11e8-af7a-0e263a127cf8",
"css_class": "Moderator1",
"max_emojis": 10,
"richtext": [],
"text_editable": false,
"override_css": false,
"type": "text"
}
]
+20
View File
@@ -0,0 +1,20 @@
[
{
"text": "Beginner",
"richtext": [],
"text_editable": false,
"override_css": false,
"css_class": "Beginner1",
"type": "text",
"id": "b8a1c822-3feb-11e8-88e1-0e5f55d58ce0"
},
{
"text": "Beginner",
"richtext": [],
"text_editable": false,
"override_css": false,
"css_class": "Beginner2",
"type": "text",
"id": "b8ea0fce-3feb-11e8-af7a-0e263a127cf8"
}
]