diff options
author | Aurélien Matouillot <a.matouillot@gmail.com> | 2018-02-27 08:15:32 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2018-05-19 09:36:38 +0200 |
commit | c8fd91020739a0d57f1df562a57bf3e50c04c05b (patch) | |
tree | 622f8ddd01ade2362231917d2a5a370c28cff977 /git/test/test_diff.py | |
parent | 7be3486dc7f91069226919fea146ca1fec905657 (diff) | |
download | gitpython-c8fd91020739a0d57f1df562a57bf3e50c04c05b.tar.gz |
Get correcly rename change_type.
Also store the rename score
Diffstat (limited to 'git/test/test_diff.py')
-rw-r--r-- | git/test/test_diff.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/git/test/test_diff.py b/git/test/test_diff.py index d21dde62..ced313af 100644 --- a/git/test/test_diff.py +++ b/git/test/test_diff.py @@ -108,6 +108,8 @@ class TestDiff(TestBase): self.assertIsNotNone(diff.renamed) self.assertEqual(diff.rename_from, 'this') self.assertEqual(diff.rename_to, 'that') + self.assertEqual(diff.change_type, 'R') + self.assertEqual(diff.score, 100) self.assertEqual(len(list(diffs.iter_change_type('R'))), 1) def test_diff_of_modified_files_not_added_to_the_index(self): |