MCPcopy Create free account
hub / github.com/modelscope/modelscope / setUp

Method setUp

tests/hub/test_commit_scheduler.py:400–404  ·  view source on GitHub ↗

Set up test environment with temporary file.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 1

write_textMethod · 0.45

Tested by

no test coverage detected