MCPcopy
hub / github.com/treeverse/dvc / test_add_unicode

Function test_add_unicode

tests/func/test_add.py:83–89  ·  view source on GitHub ↗
(tmp_dir, dvc)

Source from the content-addressed store, hash-verified

81
82
83def test_add_unicode(tmp_dir, dvc):
84 with open("\xe1", "wb", encoding=None) as fd:
85 fd.write(b"something")
86
87 (stage,) = dvc.add("\xe1")
88
89 assert os.path.isfile(stage.path)
90
91
92def test_add_unsupported_file(dvc):

Callers

nothing calls this directly

Calls 4

openFunction · 0.85
writeMethod · 0.80
isfileMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected