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

jpadilla / pyjwt / 160
98%
master: 0%

Build:
Build:
LAST BUILD BRANCH: patch-1
DEFAULT BRANCH: master
Ran 14 Mar 2017 01:13PM 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
160

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 key 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

Uncovered Existing Lines

Lines Coverage ∆ File
2
100.0
jwt/algorithms.py
10
100.0
jwt/contrib/algorithms/pycrypto.py
12
100.0
jwt/contrib/algorithms/py_ecdsa.py
Jobs
ID Job ID Ran Files Coverage
2 160.2 (TOXENV=py26-crypto) 14 Mar 2017 01:13PM UTC 0
87.52
Travis Job 160.2
3 160.3 (TOXENV=py27-crypto) 14 Mar 2017 01:14PM UTC 0
86.12
Travis Job 160.3
4 160.4 (TOXENV=py33-crypto) 14 Mar 2017 01:13PM UTC 0
86.27
Travis Job 160.4
5 160.5 (TOXENV=py34-crypto) 14 Mar 2017 01:13PM UTC 0
86.27
Travis Job 160.5
6 160.6 (TOXENV=py35-crypto) 14 Mar 2017 01:14PM UTC 0
86.27
Travis Job 160.6
7 160.7 (TOXENV=py34-nocrypto) 14 Mar 2017 01:14PM UTC 0
64.59
Travis Job 160.7
8 160.8 (TOXENV=py35-nocrypto) 14 Mar 2017 01:14PM UTC 0
64.59
Travis Job 160.8
9 160.9 (TOXENV=py27-nocrypto) 14 Mar 2017 01:14PM UTC 0
64.43
Travis Job 160.9
Source Files on build 160
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #160
  • b6a86de2 on github
  • Prev Build on fix-key-errors (#159)
  • Next Build on fix-key-errors (#162)
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