From cf900c4b9657f8f00fbd29832191f71880673525 Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Mon, 22 Jan 2024 17:02:11 -0500 Subject: [PATCH] Fix warning in test --- test/rapids_pre_commit_hooks/test_copyright.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/rapids_pre_commit_hooks/test_copyright.py b/test/rapids_pre_commit_hooks/test_copyright.py index 2307220..1a8129d 100644 --- a/test/rapids_pre_commit_hooks/test_copyright.py +++ b/test/rapids_pre_commit_hooks/test_copyright.py @@ -518,6 +518,9 @@ def file_contents(verbed): with patch("os.getcwd", Mock(return_value=git_repo.working_tree_dir)), mock_os_walk( git_repo.working_tree_dir + ), patch( + "rapids_pre_commit_hooks.copyright.get_target_branch_upstream_commit", + Mock(return_value=None), ): assert copyright.get_changed_files() == { "untouched.txt": None,