get: tes_get_from_non_dvc_master: capture git logs at INFO

This commit is contained in:
Paweł Redzyński
2020-01-16 10:43:48 +01:00
parent c2f5e35f1d
commit 18446996ab
+3 -1
View File
@@ -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 == ""