diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-22 19:43:01 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-22 19:43:01 +0200 |
commit | 1496979cf7e9692ef869d2f99da6141756e08d25 (patch) | |
tree | 01c3c37c08e396d3a61b19f5cde51ed0e414f635 /test/git/test_index.py | |
parent | 7184340f9d826a52b9e72fce8a30b21a7c73d5be (diff) | |
download | gitpython-1496979cf7e9692ef869d2f99da6141756e08d25.tar.gz |
default index writing now writes the index of the current repository in a fashion comparable to the native implementation
Diffstat (limited to 'test/git/test_index.py')
-rw-r--r-- | test/git/test_index.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/git/test_index.py b/test/git/test_index.py index 8baf408c..5c643a67 100644 --- a/test/git/test_index.py +++ b/test/git/test_index.py @@ -101,7 +101,13 @@ class TestTree(TestBase): # END for each blob assert num_blobs == len(three_way_index.entries) - def test_from_index(self): + @with_rw_repo('0.1.6') + def test_from_index(self, rw_repo): # default Index instance points to our index - index = Index(self.rorepo) + index = Index(rw_repo) assert len(index.entries) + + # write the file back + index.write() + + # could sha it, or check stats |