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

jpadilla / pyjwt / 161
98%
master: 0%

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

Pull #245

travis-ci

web-flow
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.
Pull Request #245: Refactor error handling in Algorithm.prepare_key() methods

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
24
100.0
jwt/contrib/algorithms/pycrypto.py
26
100.0
jwt/contrib/algorithms/py_ecdsa.py
Jobs
ID Job ID Ran Files Coverage
2 161.2 (TOXENV=py26-crypto) 14 Mar 2017 01:16PM UTC 0
87.52
Travis Job 161.2
3 161.3 (TOXENV=py27-crypto) 14 Mar 2017 01:16PM UTC 0
86.12
Travis Job 161.3
4 161.4 (TOXENV=py33-crypto) 14 Mar 2017 01:17PM UTC 0
86.27
Travis Job 161.4
5 161.5 (TOXENV=py34-crypto) 14 Mar 2017 01:17PM UTC 0
86.27
Travis Job 161.5
6 161.6 (TOXENV=py35-crypto) 14 Mar 2017 01:17PM UTC 0
86.27
Travis Job 161.6
7 161.7 (TOXENV=py34-nocrypto) 14 Mar 2017 01:17PM UTC 0
64.59
Travis Job 161.7
8 161.8 (TOXENV=py35-nocrypto) 14 Mar 2017 01:18PM UTC 0
64.59
Travis Job 161.8
9 161.9 (TOXENV=py27-nocrypto) 14 Mar 2017 01:18PM UTC 0
64.43
Travis Job 161.9
Source Files on build 161
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #161
  • Pull Request #245
  • PR Base - fix-ec-ssh-pub-key (#157)
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