webbrain-one's picture
download
raw
656 Bytes
import tempfile
import unittest
from pathlib import Path
from deepseek_vision.serving.patch_sglang import NEW, OLD, patch_deepseek_v4_source
class SGLangPatchTests(unittest.TestCase):
def test_patch_is_idempotent(self):
with tempfile.TemporaryDirectory() as directory:
source = Path(directory) / "deepseek_v4.py"
source.write_text(f"before\n{OLD}\nafter\n", encoding="utf-8")
self.assertTrue(patch_deepseek_v4_source(source))
self.assertFalse(patch_deepseek_v4_source(source))
self.assertIn(NEW, source.read_text(encoding="utf-8"))
if __name__ == "__main__":
unittest.main()

Xet Storage Details

Size:
656 Bytes
·
Xet hash:
4accff5d0b266a80f9fb57893acee5101f04533ab25e47f3b90d83cc18d7e0b5

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.