-
Notifications
You must be signed in to change notification settings - Fork 68
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
Fix two small issues #162
Fix two small issues #162
Conversation
Local storage media urls are prefixed with '/', previously only http(s) media preview src were displayed
…nloaded Plus: unit tests for non-existent tweet + invalid tweet ID
OK, improved logging and pushed another commit along with unit tests to clarify the edge case where parsing the timestamp was failing (it's actually because the tweet didn't exist). Good catch, thanks! [WIP] tag removed. Should be good to go |
Note: this now also includes a fix for the 'download_syndication' method, which was previously failing. Follows the discussion at JustAnotherArchivist/snscrape#996 (comment) |
… token) Plus add in unit tests for token generation + download syndication
66834e9
to
3546d4a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good!
self.assertFalse(response) | ||
|
||
def test_download_malformed_tweetid(self): | ||
# this tweet does not exist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Later on we could parameterise tests to remove some duplication and make it smoother to extend test cases, but I think that might be more of a PyTest way of doing things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I'm switching over to pytest in the unittest PR, we can do that there
Thanks Erin! Merged :) |
These are some small issues I came across whilst setting up/testing the project. I will add to this PR if I find any more. For bigger issues/features, I'll create new issues.