Skip to content

Commit

Permalink
Add a test case for uppercase keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerzy Kozera committed Oct 8, 2018
1 parent 191bbb5 commit 01cde91
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/plugins/keyword_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ class TestKeywordDetector(object):
(
'token = "noentropy"'
),
(
'PASSWORD = "verysimple"'
),
],
)
def test_analyze(self, file_content):
Expand All @@ -28,3 +31,5 @@ def test_analyze(self, file_content):
assert len(output) == 1
for potential_secret in output:
assert 'mock_filename' == potential_secret.filename
generated = list(logic.secret_generator(file_content))
assert len(generated) == len(output)

0 comments on commit 01cde91

Please sign in to comment.