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

hypothesis / h / 11155 / 3
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 26 Mar 2018 01:50PM UTC
Files 1192
Run time 41s
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

26 Mar 2018 01:50PM UTC coverage: 50.125%. First build
ACTION=gulp GULPTASK=test-app

Pull #3076

travis-ci

Sean Hammond
Copy transform_links() from elastic.py to storage

Duplicate the Document._transform_links() method from elastic.py in
storage.py, and add unit tests and a docstring for it.

Nothing calls the function except tests, yet.

This function is going to be needed to transform the "document" sub
objects that the client posts to the API when creating or updating an
annotation into DocumentURI objects.

The function is duplicated to avoid making changes to the legacy code in
elastic.py, and because elastic.py will be getting deleted to the
duplication doesn't matter too much.

Top-level in storage.py is probably not the right place for this
function, but just put it there for now.

Only minimal changes were made to the function from elastic.py to get
the code working in its new home where it no longer has `self`:

- Replace self with a document dict argument
- Replace self.claimaint with a unicode argument
- Replace self.created with a datetime argument
- Replace self.updated with a datetime argument
Pull Request #3076:

45443 of 90659 relevant lines covered (50.13%)

0.5 hits per line

Source Files on job 11155.3 (ACTION=gulp GULPTASK=test-app)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1
  • Travis Job 11155.3
  • 900e0db7 on github
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