TmpDir: add serialize utilities (#6620)

This commit is contained in:
Saugat Pachhai
2021-09-15 16:13:06 +05:45
committed by GitHub
parent 7521e91d05
commit fbcc3f389c
36 changed files with 179 additions and 200 deletions
+2 -2
View File
@@ -867,9 +867,9 @@ def test_checkout_external_modified_file(tmp_dir, dvc, scm, mocker, workspace):
def test_checkout_executable(tmp_dir, dvc):
tmp_dir.dvc_gen("foo", "foo")
contents = load_yaml("foo.dvc")
contents = (tmp_dir / "foo.dvc").parse()
contents["outs"][0]["isexec"] = True
dump_yaml("foo.dvc", contents)
(tmp_dir / "foo.dvc").dump(contents)
dvc.checkout("foo")