Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
* New line in test to separate test from verification
* remove empty conftest.py file
  • Loading branch information
Svenito committed Mar 16, 2024
1 parent b317f0f commit 78fda22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/darker/tests/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")}


Expand Down

0 comments on commit 78fda22

Please sign in to comment.