diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-11-03 15:52:45 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-11-03 15:52:45 +0100 |
commit | dbc18b92362f60afc05d4ddadd6e73902ae27ec7 (patch) | |
tree | 963e86880e5375a549910e9942e0064a37ddf33d /test/git/test_repo.py | |
parent | 6bca9899b5edeed7f964e3124e382c3573183c68 (diff) | |
download | gitpython-dbc18b92362f60afc05d4ddadd6e73902ae27ec7.tar.gz |
repo: added create_* and delete_* methods for refs ( head, tag, remote ) as a convenient shortcut to using the classes manually
Diffstat (limited to 'test/git/test_repo.py')
-rw-r--r-- | test/git/test_repo.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/git/test_repo.py b/test/git/test_repo.py index 464cb43f..146cff1a 100644 --- a/test/git/test_repo.py +++ b/test/git/test_repo.py @@ -251,3 +251,15 @@ class TestRepo(TestBase): # have no permissions pass # END for each config level + + def test_creation_deletion(self): + # just a very quick test to assure it generally works. There are + # specialized cases in the test_refs module + head = self.rorepo.create_head("new_head", "HEAD~1") + self.rorepo.delete_head(head) + + tag = self.rorepo.create_tag("new_tag", "HEAD~2") + self.rorepo.delete_tag(tag) + + remote = self.rorepo.create_remote("new_remote", "git@server:repo.git") + self.rorepo.delete_remote(remote) |