From 60566b380e00ce0a5cfccbd0b8890e6c42bb3429 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Fri, 16 Aug 2019 22:32:58 +0100 Subject: [PATCH] minor test update --- tests/func/test_remote.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/func/test_remote.py b/tests/func/test_remote.py index a85aa4ae5..b938f97f4 100644 --- a/tests/func/test_remote.py +++ b/tests/func/test_remote.py @@ -168,10 +168,10 @@ def test_large_dir_progress(repo_dir, dvc_repo): for i in range(LARGE_DIR_SIZE + 1): repo_dir.create(os.path.join("gen", "{}.txt".format(i)), str(i)) - with patch.object(Tqdm, "truncate") as truncate: - assert not truncate.called + with patch.object(Tqdm, "update") as update: + assert not update.called dvc_repo.add("gen") - assert truncate.called + assert update.called def test_dir_checksum_should_be_key_order_agnostic(dvc_repo):