(*args)
| 1185 | BASE_PATH = os.path.join(os.path.dirname(__file__), "tests") |
| 1186 | |
| 1187 | def deco(*args): |
| 1188 | path = os.path.join(BASE_PATH, *args) |
| 1189 | if not os.path.exists(path): |
| 1190 | if strict_data_files: |
| 1191 | raise ValueError( |
| 1192 | f"Could not find file {path} and --no-strict-data-files is not set." |
| 1193 | ) |
| 1194 | pytest.skip(f"Could not find {path}.") |
| 1195 | return path |
| 1196 | |
| 1197 | return deco |
| 1198 |