Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b61a0b5

Browse files
added test for git forward diff
1 parent 81d7efa commit b61a0b5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/commands/run_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,10 @@ def test_get_changed_files():
401401
)
402402
assert files == ['CHANGELOG.md', 'setup.py']
403403

404+
# files changed in source but not in origin should not be returned
405+
files = get_changed_files('HEAD~10', 'HEAD')
406+
assert files == []
407+
404408

405409
def test_lots_of_files(mock_out_store_directory, tempdir_factory):
406410
# windows xargs seems to have a bug, here's a regression test for

0 commit comments

Comments
 (0)