diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-14 19:34:45 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-14 19:34:45 +0200 |
commit | 6745f4542cfb74bbf3b933dba7a59ef2f54a4380 (patch) | |
tree | f897c537764a329dd9f09fa915b1bedc585bac62 /test/git/test_base.py | |
parent | a28d3d18f9237af5101eb22e506a9ddda6d44025 (diff) | |
download | gitpython-6745f4542cfb74bbf3b933dba7a59ef2f54a4380.tar.gz |
test_blob: removed many redundant tests that would fail now as the mock cannot handle the complexity of the command backend
All objects but Tree now use the persistent command to read their object information - Trees get binary data and would need their own pretty-printing or they need to parse the data themselves which is my favorite
Diffstat (limited to 'test/git/test_base.py')
-rw-r--r-- | test/git/test_base.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/git/test_base.py b/test/git/test_base.py index 97dfc255..6e3aad7f 100644 --- a/test/git/test_base.py +++ b/test/git/test_base.py @@ -73,6 +73,16 @@ class TestBase(object): assert len(s) == ref_count assert len(s|s) == ref_count + def test_heads(self): + # see how it dynmically updates its object + for head in self.repo.heads: + head.name + head.path + cur_obj = head.object + del( head.object ) + assert cur_obj == head.object + # END for each head + def test_get_object_type_by_name(self): for tname in base.Object.TYPES: assert base.Object in get_object_type_by_name(tname).mro() |