mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
minor black, test fixes
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user