diff --git a/tests/core/baseline_test.py b/tests/core/baseline_test.py index 5e6dcaa45..3cd63f883 100644 --- a/tests/core/baseline_test.py +++ b/tests/core/baseline_test.py @@ -197,7 +197,7 @@ def test_diff_branch_diff(self): 'detect_secrets.core.baseline.subprocess.check_output', ( SubprocessMock( - expected_input='git diff --name-only --diff-filter=ACMRTUX' + expected_input='git diff --name-only --diff-filter=ACMRTUX ' + 'origin/master -- ./test_data/files', mocked_output=b'test_data/files/file_with_secrets.py\n', ), @@ -212,7 +212,7 @@ def test_diff_branch_diff2(self): 'detect_secrets.core.baseline.subprocess.check_output', ( SubprocessMock( - expected_input='git diff --name-only --diff-filter=ACMRTUX' + expected_input='git diff --name-only --diff-filter=ACMRTUX ' + 'origin/master -- ./test_data/files', mocked_output=b'test_data/files/file_with_secrets.py\n' + 'test_data/files/tmp/file_with_secrets.py\n',