From fbadeaf68499571d5efd710dbf24cdcd0ee45780 Mon Sep 17 00:00:00 2001 From: Nick Jones Date: Mon, 18 Dec 2023 15:26:57 -0500 Subject: [PATCH] fix --- tests/core/baseline_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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',