mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-26 23:09:35 +01:00
params: read from ParamsDependency if possible (#5550)
* params: read from ParamsDependency if possible * params: introduce include_untracked flag * params: include untracked upon targets * experiments: add option to show tracked params * fixing test * params: rename tracked to deps * params: roll back to default params.yaml behavior * experiments: add option to show only used params on diff * Update dvc/command/experiments.py Co-authored-by: Jorge Orpinel <[email protected]> * Update dvc/command/experiments.py Co-authored-by: Jorge Orpinel <[email protected]> * Update dvc/command/params.py Co-authored-by: Jorge Orpinel <[email protected]> Co-authored-by: Jorge Orpinel <[email protected]>
This commit is contained in:
co-authored by
Jorge Orpinel
parent
7e5d32c2c4
commit
c39f91ecf4
@@ -64,19 +64,6 @@ def test_diff_deleted(tmp_dir, scm, dvc):
|
||||
}
|
||||
|
||||
|
||||
def test_diff_deleted_config(tmp_dir, scm, dvc):
|
||||
tmp_dir.gen("params.yaml", "foo: bar")
|
||||
dvc.run(cmd="echo params.yaml", params=["foo"], single_stage=True)
|
||||
scm.add(["params.yaml", "Dvcfile"])
|
||||
scm.commit("bar")
|
||||
|
||||
(tmp_dir / "params.yaml").unlink()
|
||||
|
||||
assert dvc.params.diff() == {
|
||||
"params.yaml": {"foo": {"old": "bar", "new": None}}
|
||||
}
|
||||
|
||||
|
||||
def test_diff_list(tmp_dir, scm, dvc):
|
||||
tmp_dir.gen("params.yaml", "foo:\n- bar\n- baz")
|
||||
dvc.run(cmd="echo params.yaml", params=["foo"], single_stage=True)
|
||||
|
||||
Reference in New Issue
Block a user