detect_private_key: print *filenames*, not the key

This commit is contained in:
Chris Kuehl 2015-08-01 16:59:21 -07:00
parent 516cc9fa72
commit ca2be345a1
2 changed files with 11 additions and 5 deletions

View file

@ -8,6 +8,7 @@ from pre_commit_hooks.detect_private_key import detect_private_key
TESTS = (
(b'-----BEGIN RSA PRIVATE KEY-----', 1),
(b'-----BEGIN DSA PRIVATE KEY-----', 1),
(b'-----BEGIN EC PRIVATE KEY-----', 1),
(b'ssh-rsa DATA', 0),
(b'ssh-dsa DATA', 0),
# Some arbitrary binary data