aa241081c9
Per [0], fernet decrypt can never throw an InvalidSignature exception as that is re-raised as InvalidToken. This patch set corrects the handling of the exception, and added additional unit tests for coverage. [0] https://cryptography.io/en/latest/fernet/#cryptography.fernet.Fernet.decrypt Co-Authored-By: Drew Walters <drewwalters96@gmail.com> Change-Id: Ic5ee7ef451a5657519c5397fc4b903b5adcb1d18 Signed-off-by: Tin Lam <tin@irrational.io>
15 lines
166 B
Plaintext
15 lines
166 B
Plaintext
# Testing
|
|
pytest==3.2.1
|
|
pytest-cov==2.5.1
|
|
testfixtures
|
|
mock==2.0.0
|
|
|
|
# Formatting
|
|
yapf==0.20.0
|
|
|
|
# Linting
|
|
hacking>=1.1.0,<1.2.0 # Apache-2.0
|
|
|
|
# Security
|
|
bandit>=1.5.0
|