Skip to content

Commit

Permalink
get: tes_get_from_non_dvc_master: capture git logs at INFO
Browse files Browse the repository at this point in the history
  • Loading branch information
pared committed Jan 16, 2020
1 parent c2f5e35 commit 1844699
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/func/test_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ def test_get_from_non_dvc_master(tmp_dir, erepo_dir, caplog):

caplog.clear()
dst = "file_imported"
with caplog.at_level(logging.INFO, logger="dvc"):
with caplog.at_level(logging.INFO, logger="dvc"), caplog.at_level(
logging.INFO, logger="git"
):
Repo.get(fspath(erepo_dir), "some_file", out=dst, rev="branch")

assert caplog.text == ""
Expand Down

0 comments on commit 1844699

Please sign in to comment.