Create test files in a temporary directory.
(test_dir: Path, count: int = 10)
| 57 | |
| 58 | |
| 59 | def create_test_files(test_dir: Path, count: int = 10) -> list[Path]: |
| 60 | """Create test files in a temporary directory.""" |
| 61 | test_dir.mkdir(parents=True, exist_ok=True) |
| 62 | files: list[Path] = [] |
| 63 | for i in range(count): |
| 64 | file_path = test_dir / f"test_file_{i}.txt" |
| 65 | file_path.write_text(f"Content {i}\n") |
| 66 | files.append(file_path) |
| 67 | return sorted(files) |
| 68 | |
| 69 | |
| 70 | def test_basic_functionality(results: StressTestResults) -> None: |
no test coverage detected