summaryrefslogtreecommitdiff
path: root/tests/test_compat.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary compatibility shims for Python 2 (#498)Jon Dufresne2020-06-191-17/+0
| | | | | | | | | | | As the project is Python 3 only, can remove the compatibility shims in compat.py. Type checking has been simplified where it can: - str is iterable - bytes is iterable - use isinstance instead of issubclass The remaining function bytes_from_int() has been moved to utils.py.
* DX Tweaks (#450)José Padilla2019-10-211-5/+3
| | | | | | | | | | * Setup pre-commit hooks * Run initial `tox -e lint` * Fix package name * Fix .travis.yml
* Add JWK support for HMAC and RSA keysadd-jwk-for-hmac-rsaMark Adams2016-08-281-5/+4
| | | | | | | - JWKs for RSA and HMAC can be encoded / decoded using the .to_jwk() and .from_jwk() methods on their respective jwt.algorithms instances - Replaced tests.utils ensure_unicode and ensure_bytes with jwt.utils versions
* Removed all references to unittestMark Adams2015-04-141-2/+1
|
* Converted all unittest constructs to pytestMark Adams2015-04-141-9/+6
|
* Fixed constant time compare tests so that they always use bytes as input.Mark Adams2015-01-251-3/+10
|
* Fixed compat imports so PEP8 passes.Mark Adams2015-01-251-1/+2
|
* Added tests for `pyjwt.compat.constant_time_compare`Mark Adams2015-01-251-0/+16
|
* Made several changes to testing to increase code coverageMark Adams2015-01-251-0/+0
- Added a ton of tests to cover areas that weren't covered before - Added a pep8 tox env to run pep8 tests as part of the build - Moved keys into tests/keys - Added test_algorithms.py for algorithms module tests - Changed setup.py to run all tests in tests/