From 3a2e850d0f72c3193d7ca43e47a019cfcd716e3d Mon Sep 17 00:00:00 2001 From: Dave Berenbaum Date: Thu, 21 Sep 2023 11:37:30 -0400 Subject: [PATCH] test for tracking dvcyaml (#713) * live: Set new defaults `report=None` and `save_dvc_exp=True`. * frameworks: Drop model_file. * update examples * Write to root dvc.yaml (#687) * add dvcyaml to root * clean up dvcyaml implementation * fix existing tests * add new tests * add unit tests for updating dvcyaml * use posix paths * don't resolve symlinks * drop entire dvclive dir on cleanup * fix studio tests * revert cleanup changes * unify rel_path util func * cleanup test * refactor tests * add test for multiple dvclive instances * put dvc_file logic into _init_dvc_file --------- Co-authored-by: daavoo * report: Drop "auto" logic. Fallback to `None` when conditions are not met for other types. * studio: Extract `post_to_studio` and decoulple from `make_report` (#705) * refactor(tests): Split `test_main` into separate files. Rename test_frameworks to frameworks. * fix matplotlib warning * drop dvc.yaml prefix from studio plots * refactor * drop .dvc files * track dvcyaml file * Studio dvcyaml (#709) * drop dvc.yaml prefix from studio plots * refactor * drop .dvc files * dvc version bump * drop unneeded relpath call * drop extra make_report call * test for git add dvc.yaml in exp run --------- Co-authored-by: daavoo --- tests/test_dvc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_dvc.py b/tests/test_dvc.py index ed7e4938..04ac878a 100644 --- a/tests/test_dvc.py +++ b/tests/test_dvc.py @@ -135,6 +135,7 @@ def test_untracked_dvclive_files_inside_dvc_exp_run_are_added( live.log_metric("foo", 1) live.next_step() live._dvc_repo.scm.add.assert_any_call(["dvclive/metrics.json", plot_file]) + live._dvc_repo.scm.add.assert_any_call(live.dvc_file) def test_dvc_outs_are_not_added(tmp_dir, mocked_dvc_repo, monkeypatch):