dvc: preserve desc on add/run/imp (#5003)

This commit is contained in:
Ruslan Kuprieiev
2020-12-01 11:52:31 +02:00
committed by GitHub
parent 7c45711e34
commit 7f0537038c
5 changed files with 64 additions and 5 deletions
+4
View File
@@ -214,10 +214,12 @@ def test_import_url_preserve_meta(tmp_dir, dvc):
text = textwrap.dedent(
"""\
# top comment
desc: top desc
deps:
- path: foo # dep comment
outs:
- path: bar # out comment
desc: out desc
meta: some metadata
"""
)
@@ -228,12 +230,14 @@ def test_import_url_preserve_meta(tmp_dir, dvc):
assert (tmp_dir / "bar.dvc").read_text() == textwrap.dedent(
"""\
# top comment
desc: top desc
deps:
- path: foo # dep comment
md5: acbd18db4cc2f85cedef654fccc4a4d8
size: 3
outs:
- path: bar # out comment
desc: out desc
md5: acbd18db4cc2f85cedef654fccc4a4d8
size: 3
meta: some metadata