minor black, test fixes

This commit is contained in:
Casper da Costa-Luis
2019-08-11 00:09:18 +01:00
parent 2f42db0eaa
commit d0315a3509
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -162,15 +162,16 @@ class TestRemoteShouldHandleUppercaseRemoteName(TestDvc):
def test_large_dir_progress(repo_dir, dvc_repo):
from dvc.utils import LARGE_DIR_SIZE
from dvc.progress import progress
from dvc.progress import Tqdm
# Create a "large dir"
for i in range(LARGE_DIR_SIZE + 1):
repo_dir.create(os.path.join("gen", "{}.txt".format(i)), str(i))
with patch.object(progress, "update_target") as update_target:
with patch.object(Tqdm, "truncate") as truncate:
assert not truncate.called
dvc_repo.add("gen")
assert update_target.called
assert truncate.called
def test_dir_checksum_should_be_key_order_agnostic(dvc_repo):
+1 -1
View File
@@ -14,4 +14,4 @@ def test_quiet(caplog, capsys):
pass
out_err = capsys.readouterr()
assert out_err.out == ""
assert '0/10' in out_err.err
assert "0/10" in out_err.err