Skip to content

Commit d8a5d4f

Browse files
committed
isolate
1 parent b17c90f commit d8a5d4f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/sync_pre_commit_deps_test.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,21 @@ def test_main_noop(tmpdir, s):
5555
assert cfg.read() == s
5656

5757

58+
def test_example(tmpdir):
59+
s = (
60+
'repos:\n'
61+
'- repo: https://github.com/example/example\n'
62+
' rev: 1.0.0\n'
63+
' hooks:\n'
64+
' - name: \N{SNOWMAN}\n'
65+
' id: snowman\n'
66+
)
67+
68+
cfg = tmpdir.join('.pre-commit-config.yaml')
69+
cfg.write_binary(s.encode())
70+
assert cfg.read() == s
71+
72+
5873
def test_main_writes_all(tmpdir):
5974
cfg = tmpdir.join('.pre-commit-config.yaml')
6075
cfg.write(

0 commit comments

Comments
 (0)