twython/tests/tweets
Phil Gyford 73982c78f4 Fix links in tweets when there's a prefix
If a tweet had a prefix (@names that it was replying to) then the length
of these is counted in the indices that show the locations of entities
within the tweet. But we were applying those indices to the 'display'
part of the tweet that doesn't include the prefix.

So, if the tweet was:

    @bob Please meet @bill

and the prefix was `@bob `, then the indices for linking `@bill`
are something like `17,21`. But we were applying the link around
`@bill` to the display text part of the tweet, which is:

    Please meet @bill

And so the indices no longer lined up with `@bill`.

Now they do, and the same for URLs and hashtags.
2018-01-06 19:03:17 +00:00
..
basic.json Move all the raw tweets for tests into their own JSON files 2017-10-11 18:27:53 +01:00
compat.json Move all the raw tweets for tests into their own JSON files 2017-10-11 18:27:53 +01:00
entities_with_prefix.json Fix links in tweets when there's a prefix 2018-01-06 19:03:17 +00:00
extended.json Move all the raw tweets for tests into their own JSON files 2017-10-11 18:27:53 +01:00
identical_urls.json Move all the raw tweets for tests into their own JSON files 2017-10-11 18:27:53 +01:00
media.json Move all the raw tweets for tests into their own JSON files 2017-10-11 18:27:53 +01:00
quoted.json Move all the raw tweets for tests into their own JSON files 2017-10-11 18:27:53 +01:00
reply.json Move all the raw tweets for tests into their own JSON files 2017-10-11 18:27:53 +01:00
retweet.json Move all the raw tweets for tests into their own JSON files 2017-10-11 18:27:53 +01:00
symbols.json Move all the raw tweets for tests into their own JSON files 2017-10-11 18:27:53 +01:00