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

jpadilla / pyjwt / 163
98%
master: 0%

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

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
1 163.1 (TOXENV=flake8) 14 Mar 2017 01:34PM UTC 0
Travis Job 163.1
2 163.2 (TOXENV=py26-crypto) 14 Mar 2017 01:34PM UTC 0
87.52
Travis Job 163.2
3 163.3 (TOXENV=py27-crypto) 14 Mar 2017 01:35PM UTC 0
86.12
Travis Job 163.3
4 163.4 (TOXENV=py33-crypto) 14 Mar 2017 01:35PM UTC 0
86.27
Travis Job 163.4
5 163.5 (TOXENV=py34-crypto) 14 Mar 2017 01:35PM UTC 0
86.27
Travis Job 163.5
6 163.6 (TOXENV=py35-crypto) 14 Mar 2017 01:36PM UTC 0
86.27
Travis Job 163.6
7 163.7 (TOXENV=py34-nocrypto) 14 Mar 2017 01:36PM UTC 0
64.59
Travis Job 163.7
8 163.8 (TOXENV=py35-nocrypto) 14 Mar 2017 01:37PM UTC 0
64.59
Travis Job 163.8
9 163.9 (TOXENV=py27-nocrypto) 14 Mar 2017 01:37PM UTC 0
64.43
Travis Job 163.9
Source Files on build 163
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #163
  • 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