Exemple #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
Exemple #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
Exemple #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
Exemple #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