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 authored and akaihola committed Jul 29, 2024
1 parent 6fb2877 commit a0607ec
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 @@ -220,11 +220,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 a0607ec

Please sign in to comment.