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

hypothesis / h / 10237 / 1
70%
master: 97%

Build:
Build:
LAST BUILD BRANCH: realtime-update-v1-h-only-1
DEFAULT BRANCH: master
Ran 14 Feb 2016 03:50PM UTC
Files 94
Run time 3s
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

14 Feb 2016 03:40PM UTC coverage: 69.966% (+0.2%) from 69.74%
10237.1

push

travis-ci

seanh
Make all API tokens require "Bearer " prefix

And strip "Bearer " prefix in auth policy, not in h.api.auth.

- userid_from_bearer_token() -> userid_from_jwt(), and accepts token as
  first param instead of reading it from Authorization header.

- userid_from_dev_token() -> userid_from_api_token(), and accepts token
  instead of request as param, no longer pulls token from request's
  Authorization header.

  And call's the Token model's get_by_value() instead of
  userid_for_token(), which no longer exists.

- Add bearer_token() helper to auth policy, and tests. Have the auth
  policy call it and pass the token, rather than the request, to
  h.api.auth's token validator functions.

2644 of 3779 relevant lines covered (69.97%)

0.7 hits per line

Source Files on job 10237.1
  • Tree
  • List 0
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 10237
  • Travis Job 10237.1
  • cec66f9d on github
  • Prev Job for on BPA1eZ9O-add-developer-api-tokens (#10188.1)
  • Next Job for on BPA1eZ9O-add-developer-api-tokens (#10238.1)
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