Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpodolak committed Oct 1, 2021
1 parent 1afff38 commit ef69611
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ def test_safe_exit_praw():
api_praw = PushshiftAPI(praw=reddit)
comments = api_praw.search_comments(ids=comment_ids, safe_exit=True)

@tape.use_cassette('test_submission_search_ids')
@tape.use_cassette('test_comment_search_limit')
def test_asc_sort():
with pytest.raises(NotImplementedError):
api = PushshiftAPI()
posts = api.search_submissions(ids=post_ids, sort='asc')
comments = api.search_comments(subreddit="science", limit=100, before=1629990795, sort='asc')

2 changes: 1 addition & 1 deletion tests/test_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ def test_response_generator():
api = PushshiftAPI(file_checkpoint=1)
comments = api.search_submission_comment_ids(ids=post_ids, mem_safe=True)
all_c = [c for c in comments]
assert(len(comments) == len(all_c) and len(all_c) == 66)
assert(len(all_c) == 66)

0 comments on commit ef69611

Please sign in to comment.