Skip to content

Commit aeed00e

Browse files
committed
Fixing baseline tests
Signed-off-by: dgzlopes <[email protected]>
1 parent 43577db commit aeed00e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ $ detect-secrets scan --update .secrets.baseline
7373

7474
### Command Line
7575

76-
`detect-secrets` is designed to be used as a git pre-commit hook, but you can also invoke `detect-secrets scan [path]` directly (`path` defaults to `.` if not specified).
76+
`detect-secrets` is designed to be used as a git pre-commit hook, but you can also invoke `detect-secrets scan [path]` directly being `path` the file(s) and/or directory(ies) to scan (`path` defaults to `.` if not specified).
7777

7878
It should be noted that by default, `detect-secrets scan` only operates on files that are tracked by git. So if you intend to scan files outside of a git repository, you will need to pass the `--all-files` flag.
7979

tests/core/baseline_test.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ def test_with_multiple_non_existent_files(self):
7878
def test_with_folders_and_files(self):
7979
results = self.get_results(path=['test_data/', 'non-existent-file.B'])
8080

81-
assert len(results.keys()) == 10
81+
assert 'test_data/files/file_with_secrets.py' in results
82+
assert 'test_data/files/tmp/file_with_secrets.py' in results
8283
assert 'test_data/files/file_with_no_secrets.py' not in results
8384
assert 'non-existent-file.B' not in results
8485

0 commit comments

Comments
 (0)