diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-17 20:13:02 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-17 20:13:02 +0200 |
commit | a5cf1bc1d3e38ab32a20707d66b08f1bb0beae91 (patch) | |
tree | 63d16571cdb4f645fb2f61d32a4ff09d97ed55e0 /test/git/test_diff.py | |
parent | b372e26366348920eae32ee81a47b469b511a21f (diff) | |
download | gitpython-a5cf1bc1d3e38ab32a20707d66b08f1bb0beae91.tar.gz |
Removed a few diff-related test cases that fail now as the respective method is missing - these tests have to be redone in test-diff module accordingly
Diffstat (limited to 'test/git/test_diff.py')
-rw-r--r-- | test/git/test_diff.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/test/git/test_diff.py b/test/git/test_diff.py index b2339455..ea83145d 100644 --- a/test/git/test_diff.py +++ b/test/git/test_diff.py @@ -7,19 +7,19 @@ from test.testlib import * from git import * -class TestDiff(object): - def setup(self): +class TestDiff(TestCase): + def setUp(self): self.repo = Repo(GIT_REPO) def test_list_from_string_new_mode(self): - output = fixture('diff_new_mode') - diffs = Diff._list_from_string(self.repo, output) + output = ListProcessAdapter(fixture('diff_new_mode')) + diffs = Diff._index_from_patch_format(self.repo, output.stdout) assert_equal(1, len(diffs)) assert_equal(10, len(diffs[0].diff.splitlines())) def test_diff_with_rename(self): - output = fixture('diff_rename') - diffs = Diff._list_from_string(self.repo, output) + output = ListProcessAdapter(fixture('diff_rename')) + diffs = Diff._index_from_patch_format(self.repo, output.stdout) assert_equal(1, len(diffs)) @@ -28,3 +28,5 @@ class TestDiff(object): assert_equal(diff.rename_from, 'AUTHORS') assert_equal(diff.rename_to, 'CONTRIBUTORS') + def test_diff_interface(self): + self.fail( "TODO: Test full diff interface on commits, trees, index, patch and non-patch" ) |