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

jpadilla / pyjwt / 162
98%
master: 0%

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

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
1 162.1 (TOXENV=flake8) 14 Mar 2017 01:31PM UTC 0
Travis Job 162.1
2 162.2 (TOXENV=py26-crypto) 14 Mar 2017 01:31PM UTC 0
87.52
Travis Job 162.2
3 162.3 (TOXENV=py27-crypto) 14 Mar 2017 01:31PM UTC 0
86.12
Travis Job 162.3
4 162.4 (TOXENV=py33-crypto) 14 Mar 2017 01:31PM UTC 0
86.27
Travis Job 162.4
5 162.5 (TOXENV=py34-crypto) 14 Mar 2017 01:31PM UTC 0
86.27
Travis Job 162.5
6 162.6 (TOXENV=py35-crypto) 14 Mar 2017 01:33PM UTC 0
86.27
Travis Job 162.6
7 162.7 (TOXENV=py34-nocrypto) 14 Mar 2017 01:33PM UTC 0
64.59
Travis Job 162.7
8 162.8 (TOXENV=py35-nocrypto) 14 Mar 2017 01:32PM UTC 0
64.59
Travis Job 162.8
9 162.9 (TOXENV=py27-nocrypto) 14 Mar 2017 01:33PM UTC 0
64.43
Travis Job 162.9
Source Files on build 162
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #162
  • ae312c2d on github
  • Prev Build on fix-key-errors (#160)
  • Next Build on fix-key-errors (#165)
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