diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-23 12:14:22 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-23 12:14:22 +0200 |
commit | a7a4388eeaa4b6b94192dce67257a34c4a6cbd26 (patch) | |
tree | 924ae1c8059b6486c2e8f234cb8030b8df69e73f /test/git/test_index.py | |
parent | 3d3a24b22d340c62fafc0e75a349c0ffe34d99d7 (diff) | |
download | gitpython-a7a4388eeaa4b6b94192dce67257a34c4a6cbd26.tar.gz |
Added frame for IndexFile add/remove/commit methods and respective test markers
Diffstat (limited to 'test/git/test_index.py')
-rw-r--r-- | test/git/test_index.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/git/test_index.py b/test/git/test_index.py index 6fd3133a..36e57d5c 100644 --- a/test/git/test_index.py +++ b/test/git/test_index.py @@ -26,6 +26,11 @@ class TestTree(TestBase): val = getattr(entry, attr) # END for each method + # test update + entries = index.entries + assert isinstance(index.update(), IndexFile) + assert entries is not index.entries + # test stage index_merge = IndexFile(self.rorepo, fixture_path("index_merge")) assert len(index_merge.entries) == 106 @@ -140,3 +145,11 @@ class TestTree(TestBase): # against something unusual self.failUnlessRaises(ValueError, index.diff, int) + + self.fail( "Test IndexFile.reset" ) + + @with_rw_repo('0.1.6') + def test_index_mutation(self, rw_repo): + # add / remove / commit / Working Tree Handling + self.fail( "add, remove, commit, working tree handling" ) + |