-
Notifications
You must be signed in to change notification settings - Fork 11
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
Write tests #3
Comments
@gedankenstuecke may I work on this? |
Absolutely! 👍 |
@gedankenstuecke I was thinking on this issue and realized I have doubts on how to test the data loading and analyzing process. The
In a project I once did we placed the test data inside the code repository, but I'm not sure if that'd fit the idea behind twitter-analyser, so I wanted to know more before doing a pull request. |
@jobliz I think having an archive specific test would be okay with me. To keep the file size (and test duration) manageable one could just minimize the data in the Does that sound good? |
Sure! I'll create a minimized archive and do new tests with it. |
Awesome, thanks! |
I made a minified archive file by deleting JSON files in the Given that I'm not entirely sure why this is happening in the code and the tests aren't really passing I'm not yet making a PR, but the code is in a branch in my fork. Do you have any idea why a minimized archive might raise exceptions? |
I haven't found time to look closely into the data. But I suspect that both Looking at my own data it seems that geolocations on Twitter became available only at mid-2011. So probably I just made a bad recommendation on which data to pick for the test set. This would also explain why it doesn't happen for the full data set, as we do have GPS coordinates in the full archive. |
That makes sense. I will make a minimized archive from months later than mid-2011 and see how it goes. If I'm getting it right then these crashes will also happen when loading full archives from people that haven't turned on location data. When I receive my archive from Twitter I will check if it does to be sure. |
Great, thanks so much! |
The old problem :P
The text was updated successfully, but these errors were encountered: