Skip to content

Commit 28c41bd

Browse files
committed
fixing tests
1 parent ef037bd commit 28c41bd

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

Diff for: detect_secrets/plugins/artifactory.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ArtifactoryDetector(RegexBasedDetector):
1111

1212
denylist = [
1313
# artifactory tokens begin with AKC
14-
re.compile(r'(\s|=|:|"|^)AKC\w{10,}'), # api token
14+
re.compile(r'(?:\s|=|:|"|^)AKC\w{10,}'), # api token
1515
# artifactory encrypted passwords begin with AP6
16-
re.compile(r'(\s|=|:|"|^)AP6\w{10,}'), # password
16+
re.compile(r'(?:\s|=|:|"|^)AP6\w{10,}'), # password
1717
]

Diff for: detect_secrets/plugins/stripe.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ class StripeDetector(RegexBasedDetector):
1414

1515
denylist = (
1616
# stripe standard keys begin with sk_live and restricted with rk_live
17-
re.compile(r'(r|s)k_live_[0-9a-zA-Z]{24}'),
17+
re.compile(r'(?:r|s)k_live_[0-9a-zA-Z]{24}'),
1818
)

Diff for: test_data/config.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[credentials]
2-
password = 12345678901234
2+
password = 123456789a1234
33

44
[parent]
55
[child]
66
keyA = 678912345
77
keyB = value1
88

99
[aws]
10-
aws_secret_key = 2345678901
10+
aws_secret_key = 23456789a1
1111

1212
[key with multiple values]
1313
keyA =

Diff for: tests/plugins/high_entropy_strings_test.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ def setup(self):
165165
'Location: test_data/config.ini:10',
166166
'Location: test_data/config.ini:15',
167167
'Location: test_data/config.ini:21',
168-
'Location: test_data/config.ini:22', ],
168+
'Location: test_data/config.ini:22',
169+
],
169170
),
170171
(
171172
'test_data/files/file_with_secrets.py',

0 commit comments

Comments
 (0)