From b61a0b54679e8ec3401ea4172c4321ae80838bd2 Mon Sep 17 00:00:00 2001 From: Vinay Karanam Date: Wed, 1 Jun 2016 15:49:44 +0530 Subject: [PATCH] added test for git forward diff --- tests/commands/run_test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/commands/run_test.py b/tests/commands/run_test.py index f85468ce..ae8b523f 100644 --- a/tests/commands/run_test.py +++ b/tests/commands/run_test.py @@ -401,6 +401,10 @@ def test_get_changed_files(): ) assert files == ['CHANGELOG.md', 'setup.py'] + # files changed in source but not in origin should not be returned + files = get_changed_files('HEAD~10', 'HEAD') + assert files == [] + def test_lots_of_files(mock_out_store_directory, tempdir_factory): # windows xargs seems to have a bug, here's a regression test for