mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
* params: add targets option * fixup * remove unnecessary changes * fix isort * params: diff: add test for --targets * tests: roll back metric/plots unification, introduce collect test * metrics/plots: refactoring * missing plots test added
11 lines
307 B
Python
11 lines
307 B
Python
import logging
|
|
|
|
from dvc.repo.collect import collect
|
|
|
|
|
|
def test_no_file_on_target_rev(tmp_dir, scm, dvc, caplog):
|
|
with caplog.at_level(logging.WARNING, "dvc"):
|
|
collect(dvc, targets=["file.yaml"], rev="current_branch")
|
|
|
|
assert "'file.yaml' was not found at: 'current_branch'." in caplog.text
|