aboutsummaryrefslogtreecommitdiff
path: root/test/git/test_tag.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-22 16:20:35 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-22 16:20:35 +0200
commit3c658c16f3437ed7e78f6072b6996cb423a8f504 (patch)
tree4dcb21b565410c48878be31deebbb441201d542b /test/git/test_tag.py
parent59e26435a8d2008073fc315bafe9f329d0ef689a (diff)
parentb197b2dbb527de9856e6e808339ab0ceaf0a512d (diff)
downloadGitPython-3c658c16f3437ed7e78f6072b6996cb423a8f504.tar.gz
GitPython-3c658c16f3437ed7e78f6072b6996cb423a8f504.zip
Merge branch 'testsystem' into improvements
* testsystem: Adjusted all remaining test suites to use the new TestBase class where appropriate Fixed decorator issue that would cause a function to be passed even though there is a default argument. This feels inconsistent as the 'argument passer' wrapper function can be called with a function or a string as first argument depending on whether the client code was explicitly passing an argument or not. That ... sucks. Now test for that case specifically and fail with a proper assertion error. I don't like it, but what can I do ... . Implemented decorators, tests pass at least Added frame for new Repo handling and some neat decorators, including tests that test whether the testing framework does what it should
Diffstat (limited to 'test/git/test_tag.py')
-rw-r--r--test/git/test_tag.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/git/test_tag.py b/test/git/test_tag.py
index 9641e0ac..97e0acd1 100644
--- a/test/git/test_tag.py
+++ b/test/git/test_tag.py
@@ -9,13 +9,11 @@ from test.testlib import *
from git import *
from git.objects.tag import TagObject
-class TestTag(object):
- def setup(self):
- self.repo = Repo(GIT_REPO)
+class TestTag(TestBase):
def test_tag_base(self):
tag_object_refs = list()
- for tag in self.repo.tags:
+ for tag in self.rorepo.tags:
assert "refs/tags" in tag.path
assert tag.name
assert isinstance( tag.commit, Commit )
@@ -30,6 +28,6 @@ class TestTag(object):
# END if we have a tag object
# END for tag in repo-tags
assert tag_object_refs
- assert isinstance(self.repo.tags['0.1.5'], TagReference)
+ assert isinstance(self.rorepo.tags['0.1.5'], TagReference)