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
91
tests/tweets/retweet.json
Normal file
91
tests/tweets/retweet.json
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
{
|
||||
"coordinates":null,
|
||||
"source":"web",
|
||||
"in_reply_to_user_id_str":null,
|
||||
"truncated":false,
|
||||
"in_reply_to_user_id":null,
|
||||
"favorite_count":0,
|
||||
"user":{
|
||||
"name":"Phil Gyford Test",
|
||||
"screen_name":"philgyfordtest"
|
||||
},
|
||||
"favorited":false,
|
||||
"retweeted_status":{
|
||||
"coordinates":null,
|
||||
"source":"<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
|
||||
"in_reply_to_user_id_str":null,
|
||||
"truncated":false,
|
||||
"in_reply_to_user_id":null,
|
||||
"favorite_count":21,
|
||||
"user":{
|
||||
"name":"Samuel Pepys",
|
||||
"screen_name":"samuelpepys"
|
||||
},
|
||||
"favorited":false,
|
||||
"id":917459832885653506,
|
||||
"contributors":null,
|
||||
"in_reply_to_screen_name":null,
|
||||
"geo":null,
|
||||
"in_reply_to_status_id_str":null,
|
||||
"id_str":"917459832885653506",
|
||||
"entities":{
|
||||
"hashtags":[
|
||||
|
||||
],
|
||||
"symbols":[
|
||||
|
||||
],
|
||||
"user_mentions":[
|
||||
|
||||
],
|
||||
"urls":[
|
||||
|
||||
]
|
||||
},
|
||||
"in_reply_to_status_id":null,
|
||||
"text":"My aunt and uncle in a very ill humour one with another, but I made shift with much ado to keep them from scolding.",
|
||||
"retweet_count":3,
|
||||
"place":null,
|
||||
"lang":"en",
|
||||
"created_at":"Mon Oct 09 18:40:44 +0000 2017",
|
||||
"is_quote_status":false,
|
||||
"retweeted":false
|
||||
},
|
||||
"id":917712989649801216,
|
||||
"contributors":null,
|
||||
"in_reply_to_screen_name":null,
|
||||
"geo":null,
|
||||
"in_reply_to_status_id_str":null,
|
||||
"id_str":"917712989649801216",
|
||||
"entities":{
|
||||
"hashtags":[
|
||||
|
||||
],
|
||||
"symbols":[
|
||||
|
||||
],
|
||||
"user_mentions":[
|
||||
{
|
||||
"id_str":"14475268",
|
||||
"indices":[
|
||||
3,
|
||||
15
|
||||
],
|
||||
"name":"Samuel Pepys",
|
||||
"id":14475268,
|
||||
"screen_name":"samuelpepys"
|
||||
}
|
||||
],
|
||||
"urls":[
|
||||
|
||||
]
|
||||
},
|
||||
"in_reply_to_status_id":null,
|
||||
"text":"RT @samuelpepys: My aunt and uncle in a very ill humour one with another, but I made shift with much ado to keep them from scolding.",
|
||||
"retweet_count":3,
|
||||
"place":null,
|
||||
"lang":"en",
|
||||
"created_at":"Tue Oct 10 11:26:41 +0000 2017",
|
||||
"is_quote_status":false,
|
||||
"retweeted":false
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue