• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ryanmcgrath / twython / 313
57%

Build:
DEFAULT BRANCH: master
Ran 06 Jan 2018 07:09PM UTC
Jobs 2
Files 10
Run time 20s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
313

Pull #479

travis-ci

web-flow
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.
Pull Request #479: Fix links in tweets when there's a prefix

8 of 8 new or added lines in 1 file covered. (100.0%)

422 of 740 relevant lines covered (57.03%)

1.14 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
5
100.0
twython/compat.py
Jobs
ID Job ID Ran Files Coverage
3 313.3 06 Jan 2018 07:09PM UTC 0
57.03
Travis Job 313.3
4 313.4 06 Jan 2018 07:09PM UTC 0
57.03
Travis Job 313.4
Source Files on build 313
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #313
  • Pull Request #479
  • PR Base - master (#310)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc