summaryrefslogtreecommitdiff
path: root/git/test/test_refs.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/test/test_refs.py')
-rw-r--r--git/test/test_refs.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/git/test/test_refs.py b/git/test/test_refs.py
index 5eb214ba..fc58dafa 100644
--- a/git/test/test_refs.py
+++ b/git/test/test_refs.py
@@ -13,6 +13,7 @@ from git.objects.tag import TagObject
from itertools import chain
import os
+
class TestRefs(TestBase):
def test_from_path(self):
@@ -55,7 +56,6 @@ class TestRefs(TestBase):
assert tag_object_refs
assert isinstance(self.rorepo.tags['0.1.5'], TagReference)
-
def test_tags_author(self):
tag = self.rorepo.tags[0]
tagobj = tag.tag
@@ -63,8 +63,6 @@ class TestRefs(TestBase):
tagger_name = tagobj.tagger.name
assert tagger_name == 'Michael Trier'
-
-
def test_tags(self):
# tag refs can point to tag objects or to commits
s = set()
@@ -138,7 +136,6 @@ class TestRefs(TestBase):
assert len(cur_head.log()) == blog_len+1
assert len(head.log()) == hlog_len+3
-
# with automatic dereferencing
assert head.set_commit(cur_commit, 'change commit once again') is head
assert len(head.log()) == hlog_len+4
@@ -151,7 +148,6 @@ class TestRefs(TestBase):
assert log[0].oldhexsha == pcommit.NULL_HEX_SHA
assert log[0].newhexsha == pcommit.hexsha
-
def test_refs(self):
types_found = set()
for ref in self.rorepo.refs:
@@ -191,7 +187,6 @@ class TestRefs(TestBase):
cur_head.reset(new_head_commit)
rw_repo.index.checkout(["lib"], force=True)#
-
# now that we have a write write repo, change the HEAD reference - its
# like git-reset --soft
heads = rw_repo.heads
@@ -499,7 +494,6 @@ class TestRefs(TestBase):
refs = list(SymbolicReference.iter_items(rw_repo))
assert len(refs) == 1
-
# test creation of new refs from scratch
for path in ("basename", "dir/somename", "dir2/subdir/basename"):
# REFERENCES