Set up test environment with temporary file.
(self)
| 398 | """Test suite for PartialFileIO functionality.""" |
| 399 | |
| 400 | def setUp(self) -> None: |
| 401 | """Set up test environment with temporary file.""" |
| 402 | self.cache_dir = Path(tempfile.mkdtemp()) |
| 403 | self.test_file = self.cache_dir / 'file.txt' |
| 404 | self.test_file.write_text('123456789abcdef') # 15 bytes |
| 405 | |
| 406 | def tearDown(self) -> None: |
| 407 | """Clean up test resources.""" |
nothing calls this directly
no test coverage detected