Walk path and yield files paths relative to dir_path.
(dir_path)
| 113 | |
| 114 | |
| 115 | def relative_walk(dir_path): |
| 116 | ''' |
| 117 | Walk path and yield files paths relative to dir_path. |
| 118 | ''' |
| 119 | for base_dir, _dirs, files in walk(dir_path): |
| 120 | for file_name in files: |
| 121 | if file_name.endswith('.yml'): |
| 122 | continue |
| 123 | file_path = path.join(base_dir, file_name) |
| 124 | file_path = file_path.replace(dir_path, '', 1) |
| 125 | file_path = file_path.strip(path.sep) |
| 126 | yield file_path |
| 127 | |
| 128 | |
| 129 | def create_test_function( |
no test coverage detected