Skip to content

Commit

Permalink
Add new arg to gen missing test files
Browse files Browse the repository at this point in the history
This is useful when creating new test suites for copyrights

Signed-off-by: Philippe Ombredanne <[email protected]>
  • Loading branch information
pombredanne committed Sep 4, 2024
1 parent d1af11e commit 9825f6d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/commoncode/testcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,7 @@ def make_non_executable(location):
current_stat = stat.S_IMODE(os.lstat(location).st_mode)
os.chmod(location, current_stat & ~stat.S_IEXEC)


def get_test_file_pairs(test_dir):
def get_test_file_pairs(test_dir, template_to_generate_missing_yaml=None):
"""
Yield tuples of (data_file, test_file) from a test data `test_dir` directory.
Raise exception for orphaned/dangling files.
Expand Down

0 comments on commit 9825f6d

Please sign in to comment.