Example #1
0
 def test_replace__all_with_comment_limit(self):
     with self.use_cassette(match_requests_on=["uri", "method", "body"]):
         submission = Submission(self.reddit, "3hahrw")
         submission.comment_limit = 10
         skipped = submission.comments.replace_more(None, threshold=0)
         assert len(skipped) == 0
         assert len(submission.comments.list()) >= 500
Example #2
0
 def test_replace__all_with_comment_limit(self):
     with self.recorder.use_cassette(
             'TestCommentForest.test_replace__all_with_comment_limit',
             match_requests_on=['uri', 'method', 'body']):
         submission = Submission(self.reddit, '3hahrw')
         submission.comment_limit = 10
         skipped = submission.comments.replace_more(None, threshold=0)
         assert len(skipped) == 0
         assert len(submission.comments.list()) >= 500
Example #3
0
 def test_replace__all_with_comment_limit(self):
     with self.recorder.use_cassette(
             'TestCommentForest.test_replace__all_with_comment_limit',
             match_requests_on=['uri', 'method', 'body']):
         submission = Submission(self.reddit, '3hahrw')
         submission.comment_limit = 10
         skipped = submission.comments.replace_more(None, threshold=0)
         assert len(skipped) == 0
         assert len(submission.comments.list()) >= 500
Example #4
0
 def test_replace__all_with_comment_limit(self):
     with self.recorder.use_cassette(
         "TestCommentForest.test_replace__all_with_comment_limit",
         match_requests_on=["uri", "method", "body"],
     ):
         submission = Submission(self.reddit, "3hahrw")
         submission.comment_limit = 10
         skipped = submission.comments.replace_more(None, threshold=0)
         assert len(skipped) == 0
         assert len(submission.comments.list()) >= 500