mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
exp save: Include LOCK_FILE
This commit is contained in:
@@ -134,5 +134,22 @@ def test_untracked_top_level_files_are_included_in_exp(tmp_dir, scm, dvc):
|
||||
dvc.reproduce(stage.addressing)
|
||||
exp = dvc.experiments.save()
|
||||
fs = scm.get_fs(exp)
|
||||
for file in ["metrics.json", "params.yaml", "plots.csv"]:
|
||||
for file in ["metrics.json", "params.yaml", "plots.csv", "dvc.lock"]:
|
||||
assert fs.exists(file)
|
||||
|
||||
|
||||
def test_untracked_dvclock_is_included_in_exp(tmp_dir, scm, dvc):
|
||||
stage = dvc.stage.add(
|
||||
cmd="echo foo",
|
||||
name="foo",
|
||||
)
|
||||
scm.add_commit(["dvc.yaml"], message="add dvc.yaml")
|
||||
dvc.reproduce(stage.addressing)
|
||||
|
||||
# dvc.reproduce automatically stages `dvc.lock`
|
||||
# force it to be untracked
|
||||
scm.reset()
|
||||
|
||||
exp = dvc.experiments.save()
|
||||
fs = scm.get_fs(exp)
|
||||
assert fs.exists("dvc.lock")
|
||||
|
||||
Reference in New Issue
Block a user