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

jpadilla / pyjwt / 159
98%
master: 0%

Build:
Build:
LAST BUILD BRANCH: patch-1
DEFAULT BRANCH: master
Ran 14 Mar 2017 01:10PM UTC
Jobs 8
Files 11
Run time 1min
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
159

push

travis-ci

mark-adams
Refactor error handling in Algorithm.prepare_key() methods

Our error handling in Algorithm.prepare_key() was previously weird and
kind of inconsistent. This change makes a number of improvements:

* Refactors RSA and ECDSA prepare_key() methods to reduce nesting and
  make the code simpler to understand
* All calls to Algorithm.prepare_key() return InvalidKeyError (or a
  subclass) or a valid PublicKey / PrivateKey instance.
* Created a new InvalidAsymmetricKeyError class that is used to provide
  a standard message when an invalid RSA or ECDSA key is used.

49 of 49 new or added lines in 4 files covered. (100.0%)

577 of 641 relevant lines covered (90.02%)

6.26 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
100.0
jwt/contrib/algorithms/py_ecdsa.py
2
100.0
jwt/contrib/algorithms/pycrypto.py
8
100.0
jwt/algorithms.py
Jobs
ID Job ID Ran Files Coverage
2 159.2 (TOXENV=py26-crypto) 14 Mar 2017 01:10PM UTC 0
87.52
Travis Job 159.2
3 159.3 (TOXENV=py27-crypto) 14 Mar 2017 01:10PM UTC 0
86.12
Travis Job 159.3
4 159.4 (TOXENV=py33-crypto) 14 Mar 2017 01:10PM UTC 0
86.27
Travis Job 159.4
5 159.5 (TOXENV=py34-crypto) 14 Mar 2017 01:10PM UTC 0
86.27
Travis Job 159.5
6 159.6 (TOXENV=py35-crypto) 14 Mar 2017 01:11PM UTC 0
86.27
Travis Job 159.6
7 159.7 (TOXENV=py34-nocrypto) 14 Mar 2017 01:12PM UTC 0
64.59
Travis Job 159.7
8 159.8 (TOXENV=py35-nocrypto) 14 Mar 2017 01:11PM UTC 0
64.59
Travis Job 159.8
9 159.9 (TOXENV=py27-nocrypto) 14 Mar 2017 01:11PM UTC 0
64.43
Travis Job 159.9
Source Files on build 159
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #159
  • a00adc0d on github
  • Next Build on fix-key-errors (#160)
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