From 73f95ee6b4e3e451940fa2211816fac287af555c Mon Sep 17 00:00:00 2001 From: Ivan Shcheklein Date: Tue, 5 Nov 2019 16:25:38 -0800 Subject: [PATCH] tests: minor style and typo fixes in dvc gc tests --- tests/func/test_gc.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/func/test_gc.py b/tests/func/test_gc.py index df746e2b8..116234eb8 100644 --- a/tests/func/test_gc.py +++ b/tests/func/test_gc.py @@ -188,10 +188,10 @@ def test_all_commits(git, dvc_repo): cache_dir = os.path.join(dvc_repo.root_dir, ".dvc", "cache") testfile = pathlib.Path("testfile") - testfile.write_text("uncommited") + testfile.write_text("uncommitted") dvc_repo.add(str(testfile)) - testfile.write_text("commited") + testfile.write_text("committed") add_and_commit() testfile.write_text("modified") @@ -200,12 +200,12 @@ def test_all_commits(git, dvc_repo): testfile.write_text("workspace") dvc_repo.add(str(testfile)) - N = _count_files(cache_dir) + n = _count_files(cache_dir) dvc_repo.gc(all_commits=True) - # Only one uncommited file should go away - assert _count_files(cache_dir) == N - 1 + # Only one uncommitted file should go away + assert _count_files(cache_dir) == n - 1 def _count_files(path):