-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibly incorrect test assertions for min_likes and min_retweets #50
Comments
Since the expected lists don't match the actual lists, both of those tests are false positives. Might want to add
to avoid false positives. |
Hi @lorainekv, Apologies for the delayed response. I think you are right! Feel free to submit the pull request. |
koenrh
added a commit
that referenced
this issue
Sep 28, 2019
koenrh
added a commit
that referenced
this issue
Sep 28, 2019
koenrh
added a commit
that referenced
this issue
Sep 28, 2019
koenrh
added a commit
that referenced
this issue
Sep 28, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there! I was working on a PR to address Issue 49.
However, I noticed some confusing discrepancies between the README and the test assertions, and wanted to clarify first before submitting PRs.
min_likes expectations:
delete-tweets/test_deletetweets.py
Line 86 in d4d9161
Shouldn't the expected value be
[{"id_str": "21"}]
?According to the docs, it seems like the TweetReader should exclude any tweets with at least one or more retweet.
If you take a look at the actual TweetReader list in that test case by dropping in a breakpoint.
min_retweets expectations:
Should this line
delete-tweets/test_deletetweets.py
Line 97 in d4d9161
be
expected = [{'id_str': '21', 'retweet_count': 0}]
?Just like the above example, inspecting the actual list in the test returns:
=> [{'id_str': '21', 'retweet_count': 0}]
The text was updated successfully, but these errors were encountered: