Create test files in a temporary directory.
(test_dir: Path, count: int = 10)
| 26 | |
| 27 | |
| 28 | def create_test_files(test_dir: Path, count: int = 10) -> list[Path]: |
| 29 | """Create test files in a temporary directory.""" |
| 30 | test_dir.mkdir(parents=True, exist_ok=True) |
| 31 | files: list[Path] = [] |
| 32 | for i in range(count): |
| 33 | file_path = test_dir / f"test_file_{i}.txt" |
| 34 | file_path.write_text(f"Content {i}\n") |
| 35 | files.append(file_path) |
| 36 | return sorted(files) |
| 37 | |
| 38 | |
| 39 | def test_all_caches_basic_functionality() -> None: |
no test coverage detected