Skip to content

Commit

Permalink
Fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
syn-4ck committed Apr 14, 2021
1 parent adf9aad commit 5023252
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/filters/heuristic_filter_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def test_failure(self, secret, line):
(
('secret = {hunter2}', False),
('secret = <hunter2>', False),
('secret = hunter2', True),
('secret = "hunter2"', True),
('secret= ${hunter2}', False),
),
)
Expand Down
4 changes: 2 additions & 2 deletions tests/plugins/keyword_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
('password = {}'.format(SYMBOL_SECRET), None), # At least 1 alphanumeric character is required
('api_key = ""', None), # Nothing in the quotes
("secret: ''", None), # Nothing in the quotes
('secret = "abcdefghi"', None), # Alphabet sequential string
('password = "somefakekey"', None), # 'fake' in the secret
('password: ${link}', None), # Has a ${ followed by a }
('some_key = "real_secret"', None), # We cannot make 'key' a Keyword, too noisy)
('private_key "hopenobodyfindsthisone\';', None), # Double-quote does not match single-quote)
Expand Down Expand Up @@ -144,7 +144,7 @@
('password = {}'.format(COMMON_SECRET), None), # Secret without quotes
('api_key = ""', None), # Nothing in the quotes
("secret: ''", None), # Nothing in the quotes
('password = "somefakekey"', None), # 'fake' in the secret
('secret = "abcdefghi"', None), # Alphabet sequential string
('password: ${link}', None), # Has a ${ followed by a }
('some_key = "real_secret"', None), # We cannot make 'key' a Keyword, too noisy)
('private_key "hopenobodyfindsthisone\';', None), # Double-quote does not match single-quote)
Expand Down

0 comments on commit 5023252

Please sign in to comment.