Move all the raw tweets for tests into their own JSON files
Seems better to have the raw data as JSON, like it comes from the API, then load it into python objects for each test.
This commit is contained in:
parent
5c55aa8844
commit
5a008e7e77
12 changed files with 1010 additions and 49 deletions
204
tests/tweets/extended.json
Normal file
204
tests/tweets/extended.json
Normal file
|
|
@ -0,0 +1,204 @@
|
|||
{
|
||||
"full_text":"Say more about what's happening! Rolling out now: photos, videos, GIFs, polls, and Quote Tweets no longer count toward your 140 characters. https://t.co/I9pUC0NdZC",
|
||||
"truncated":false,
|
||||
"is_quote_status":false,
|
||||
"in_reply_to_status_id":null,
|
||||
"id":777915304261193728,
|
||||
"favorite_count":13856,
|
||||
"contributors":null,
|
||||
"source":"<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
|
||||
"retweeted":false,
|
||||
"coordinates":null,
|
||||
"entities":{
|
||||
"symbols":[
|
||||
|
||||
],
|
||||
"user_mentions":[
|
||||
|
||||
],
|
||||
"hashtags":[
|
||||
|
||||
],
|
||||
"urls":[
|
||||
|
||||
],
|
||||
"media":[
|
||||
{
|
||||
"expanded_url":"https://twitter.com/twitter/status/777915304261193728/photo/1",
|
||||
"sizes":{
|
||||
"small":{
|
||||
"h":340,
|
||||
"w":340,
|
||||
"resize":"fit"
|
||||
},
|
||||
"large":{
|
||||
"h":700,
|
||||
"w":700,
|
||||
"resize":"fit"
|
||||
},
|
||||
"medium":{
|
||||
"h":600,
|
||||
"w":600,
|
||||
"resize":"fit"
|
||||
},
|
||||
"thumb":{
|
||||
"h":150,
|
||||
"w":150,
|
||||
"resize":"crop"
|
||||
}
|
||||
},
|
||||
"url":"https://t.co/I9pUC0NdZC",
|
||||
"media_url_https":"https://pbs.twimg.com/tweet_video_thumb/Csu1TzEVMAAAEv7.jpg",
|
||||
"id_str":"777914712382058496",
|
||||
"indices":[
|
||||
140,
|
||||
163
|
||||
],
|
||||
"media_url":"http://pbs.twimg.com/tweet_video_thumb/Csu1TzEVMAAAEv7.jpg",
|
||||
"type":"photo",
|
||||
"id":777914712382058496,
|
||||
"display_url":"pic.twitter.com/I9pUC0NdZC"
|
||||
}
|
||||
]
|
||||
},
|
||||
"in_reply_to_screen_name":null,
|
||||
"id_str":"777915304261193728",
|
||||
"display_text_range":[
|
||||
0,
|
||||
139
|
||||
],
|
||||
"retweet_count":14767,
|
||||
"in_reply_to_user_id":null,
|
||||
"favorited":false,
|
||||
"user":{
|
||||
"follow_request_sent":false,
|
||||
"has_extended_profile":false,
|
||||
"profile_use_background_image":true,
|
||||
"id":783214,
|
||||
"verified":true,
|
||||
"profile_text_color":"333333",
|
||||
"profile_image_url_https":"https://pbs.twimg.com/profile_images/767879603977191425/29zfZY6I_normal.jpg",
|
||||
"profile_sidebar_fill_color":"F6F6F6",
|
||||
"is_translator":false,
|
||||
"geo_enabled":true,
|
||||
"entities":{
|
||||
"url":{
|
||||
"urls":[
|
||||
{
|
||||
"url":"http://t.co/5iRhy7wTgu",
|
||||
"indices":[
|
||||
0,
|
||||
22
|
||||
],
|
||||
"expanded_url":"http://blog.twitter.com/",
|
||||
"display_url":"blog.twitter.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"description":{
|
||||
"urls":[
|
||||
{
|
||||
"url":"https://t.co/qq1HEzvnrA",
|
||||
"indices":[
|
||||
84,
|
||||
107
|
||||
],
|
||||
"expanded_url":"http://support.twitter.com",
|
||||
"display_url":"support.twitter.com"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"followers_count":56827498,
|
||||
"protected":false,
|
||||
"location":"San Francisco, CA",
|
||||
"default_profile_image":false,
|
||||
"id_str":"783214",
|
||||
"lang":"en",
|
||||
"utc_offset":-25200,
|
||||
"statuses_count":3161,
|
||||
"description":"Your official source for news, updates and tips from Twitter, Inc. Need help? Visit https://t.co/qq1HEzvnrA.",
|
||||
"friends_count":145,
|
||||
"profile_link_color":"226699",
|
||||
"profile_image_url":"http://pbs.twimg.com/profile_images/767879603977191425/29zfZY6I_normal.jpg",
|
||||
"notifications":false,
|
||||
"profile_background_image_url_https":"https://pbs.twimg.com/profile_background_images/657090062/l1uqey5sy82r9ijhke1i.png",
|
||||
"profile_background_color":"ACDED6",
|
||||
"profile_banner_url":"https://pbs.twimg.com/profile_banners/783214/1471929200",
|
||||
"profile_background_image_url":"http://pbs.twimg.com/profile_background_images/657090062/l1uqey5sy82r9ijhke1i.png",
|
||||
"name":"Twitter",
|
||||
"is_translation_enabled":false,
|
||||
"profile_background_tile":true,
|
||||
"favourites_count":2332,
|
||||
"screen_name":"twitter",
|
||||
"url":"http://t.co/5iRhy7wTgu",
|
||||
"created_at":"Tue Feb 20 14:35:54 +0000 2007",
|
||||
"contributors_enabled":false,
|
||||
"time_zone":"Pacific Time (US & Canada)",
|
||||
"profile_sidebar_border_color":"FFFFFF",
|
||||
"default_profile":false,
|
||||
"following":false,
|
||||
"listed_count":90445
|
||||
},
|
||||
"geo":null,
|
||||
"in_reply_to_user_id_str":null,
|
||||
"possibly_sensitive":false,
|
||||
"possibly_sensitive_appealable":false,
|
||||
"lang":"en",
|
||||
"created_at":"Mon Sep 19 17:00:36 +0000 2016",
|
||||
"in_reply_to_status_id_str":null,
|
||||
"place":null,
|
||||
"extended_entities":{
|
||||
"media":[
|
||||
{
|
||||
"expanded_url":"https://twitter.com/twitter/status/777915304261193728/photo/1",
|
||||
"display_url":"pic.twitter.com/I9pUC0NdZC",
|
||||
"url":"https://t.co/I9pUC0NdZC",
|
||||
"media_url_https":"https://pbs.twimg.com/tweet_video_thumb/Csu1TzEVMAAAEv7.jpg",
|
||||
"video_info":{
|
||||
"aspect_ratio":[
|
||||
1,
|
||||
1
|
||||
],
|
||||
"variants":[
|
||||
{
|
||||
"url":"https://pbs.twimg.com/tweet_video/Csu1TzEVMAAAEv7.mp4",
|
||||
"bitrate":0,
|
||||
"content_type":"video/mp4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"id_str":"777914712382058496",
|
||||
"sizes":{
|
||||
"small":{
|
||||
"h":340,
|
||||
"w":340,
|
||||
"resize":"fit"
|
||||
},
|
||||
"large":{
|
||||
"h":700,
|
||||
"w":700,
|
||||
"resize":"fit"
|
||||
},
|
||||
"medium":{
|
||||
"h":600,
|
||||
"w":600,
|
||||
"resize":"fit"
|
||||
},
|
||||
"thumb":{
|
||||
"h":150,
|
||||
"w":150,
|
||||
"resize":"crop"
|
||||
}
|
||||
},
|
||||
"indices":[
|
||||
140,
|
||||
163
|
||||
],
|
||||
"type":"animated_gif",
|
||||
"id":777914712382058496,
|
||||
"media_url":"http://pbs.twimg.com/tweet_video_thumb/Csu1TzEVMAAAEv7.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue