Skip to content

Commit

Permalink
chore(): add wildcard test (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgundy authored Dec 19, 2024
1 parent 8f0c9b3 commit 22240c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions reusable_workflows/tests/test_repo_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 22240c9

Please sign in to comment.