From 22240c9330f8f1ae7dde4cf452640a89c7069c3b Mon Sep 17 00:00:00 2001 From: Carly Gundy <47304080+cgundy@users.noreply.github.com> Date: Thu, 19 Dec 2024 17:11:29 +0100 Subject: [PATCH] chore(): add wildcard test (#96) --- reusable_workflows/tests/test_repo_policies.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reusable_workflows/tests/test_repo_policies.py b/reusable_workflows/tests/test_repo_policies.py index 8c2a909..ecd0661 100644 --- a/reusable_workflows/tests/test_repo_policies.py +++ b/reusable_workflows/tests/test_repo_policies.py @@ -84,6 +84,11 @@ def test_check_files_in_approved_list_succeeds(): assert check_files_in_approved_list(changed_files, approved_files) + changed_files = ["file1", "file2", "folder/subfolder/file3.txt"] + approved_files = get_test_approved_files() + + assert check_files_in_approved_list(changed_files, approved_files) + def test_check_files_in_approved_list_fails(): changed_files = ["file1", "file2", "folder/file3.txt", 'folder/file4.py'] approved_files = get_test_approved_files()