Test: write the snapshot revision file with a real newline escape
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
6487c7a063
commit
94e08d1fdc
1 changed files with 1 additions and 2 deletions
|
|
@ -77,8 +77,7 @@ class SnapshotPath(unittest.TestCase):
|
|||
with tempfile.TemporaryDirectory() as home:
|
||||
repo = Path(home) / "hub" / "models--org--name"
|
||||
(repo / "refs").mkdir(parents=True)
|
||||
(repo / "refs" / "main").write_text("deadbeef
|
||||
")
|
||||
(repo / "refs" / "main").write_text("deadbeef" + chr(10))
|
||||
(repo / "snapshots" / "deadbeef").mkdir(parents=True)
|
||||
self.assertEqual(te.snapshot_path(Path(home), "org/name"), repo / "snapshots" / "deadbeef")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue