示例#1
0
    def test_sort_structured_method(self):
        reddit = Login.create_reddit_object()
        url = "https://www.reddit.com/r/AskReddit/comments/mg8fhz/if_you_could_tell_yourself_anything_what_would/"

        submission = reddit.submission(url = url)

        forest_replies = Comments.SortComments().sort_structured(submission, url)

        assert len(forest_replies) > 0
示例#2
0
    def test_sort_raw_method(self):
        reddit = Login.create_reddit_object()
        url = "https://www.reddit.com/r/AskReddit/comments/mg8fhz/if_you_could_tell_yourself_anything_what_would/"

        all_comments = []
        submission = reddit.submission(url=url)

        Comments.SortComments().sort_raw(all_comments, submission)

        assert len(all_comments) > 0