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

hypothesis / h / 7506
65%
master: 97%

Build:
Build:
LAST BUILD BRANCH: realtime-update-v1-h-only-1
DEFAULT BRANCH: master
Ran 11 Aug 2015 10:47PM UTC
Jobs 1
Files 79
Run time 1s
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
7506

push

travis-ci

seanh
Refactor h/api/views.py

This code was getting a bit legacy and hard to change or write new tests
for. In particular:

- The view functions relied on some private helper functions like
  _create_annotation() and _update_annotation() that were becoming
  fairly complex in themselves but didn't have their own unit tests
  (because we don't like testing private helper functions directly)

- The code in views.py didn't have enough tests, lots of things untested

So:

- Move _create_annotation() and _update_annotation() helpers into a new
  logic.py module so they can be public functions and have their own
  unit tests

- Add lots of tests for views.py and logic.py

42 of 42 new or added lines in 2 files covered. (100.0%)

2193 of 3380 relevant lines covered (64.88%)

0.65 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7506.1 11 Aug 2015 10:47PM UTC 0
64.88
Travis Job 7506.1
Source Files on build 7506
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7506
  • 869e2b99 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