From 78fda224ca09d9920c9e69d36c9fe500319389c2 Mon Sep 17 00:00:00 2001 From: Sven Steinbauer Date: Fri, 15 Mar 2024 08:44:00 +0000 Subject: [PATCH] Address review comments * New line in test to separate test from verification * remove empty conftest.py file --- src/darker/tests/test_git.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/darker/tests/test_git.py b/src/darker/tests/test_git.py index 1d2dcb4dc..ab79f0b99 100644 --- a/src/darker/tests/test_git.py +++ b/src/darker/tests/test_git.py @@ -149,11 +149,13 @@ def test_git_diff_name_only(git_repo): first = git_repo.get_hash() git_repo.add({"a.py": "A", "b.dy": "B"}, commit="only a.py modified") git_repo.rename("c.py", "x.py", commit="rename c.py to x.py") + second = git_repo.get_hash() result = git._git_diff_name_only( first, second, {Path("a.py"), Path("c.py"), Path("Z.py")}, git_repo.root ) + assert result == {Path("a.py")}