diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-11-03 20:59:24 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-11-03 21:00:35 +0100 |
commit | 43ab2afba68fd0e1b5d138ed99ffc788dc685e36 (patch) | |
tree | 2a7281ec51314abe014aa79bd0f760ed7acfbbe7 /test/git/test_refs.py | |
parent | e648efdcc1ca904709a646c1dbc797454a307444 (diff) | |
download | gitpython-43ab2afba68fd0e1b5d138ed99ffc788dc685e36.tar.gz |
refs: iter_items now imlemented natively for additional performance. We did not implement the crazy sorting feature found in git-for-each-ref though
Diffstat (limited to 'test/git/test_refs.py')
-rw-r--r-- | test/git/test_refs.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/test/git/test_refs.py b/test/git/test_refs.py index f7f4f71a..6b3c2840 100644 --- a/test/git/test_refs.py +++ b/test/git/test_refs.py @@ -32,15 +32,6 @@ class TestRefs(TestBase): assert tag_object_refs assert isinstance(self.rorepo.tags['0.1.5'], TagReference) - @patch_object(Git, '_call_process') - def test_ref_with_path_component(self, git): - git.return_value = fixture('for_each_ref_with_path_component') - head = self.rorepo.heads[0] - - assert_equal('refactoring/feature1', head.name) - assert_true(git.called) - - def test_tags(self): # tag refs can point to tag objects or to commits s = set() @@ -220,3 +211,8 @@ class TestRefs(TestBase): assert not cur_head.is_detached assert head.commit == parent_commit + # test ref listing - assure we have packed refs + rw_repo.git.pack_refs(all=True) + assert rw_repo.heads + assert rw_repo.tags + |