summaryrefslogtreecommitdiff
path: root/git/test/test_index.py
diff options
context:
space:
mode:
authorAntoine Musso <hashar@free.fr>2014-11-16 20:51:04 +0100
committerAntoine Musso <hashar@free.fr>2014-11-16 20:51:21 +0100
commitbe34ec23c48d6d5d8fd2ef4491981f6fb4bab8e6 (patch)
tree7d0124054760421d95a6f675d8e843e42a72ad82 /git/test/test_index.py
parentf5d11b750ecc982541d1f936488248f0b42d75d3 (diff)
downloadgitpython-be34ec23c48d6d5d8fd2ef4491981f6fb4bab8e6.tar.gz
pep8 linting (blank lines expectations)
E301 expected 1 blank line, found 0 E302 expected 2 blank lines, found 1 E303 too many blank lines (n)
Diffstat (limited to 'git/test/test_index.py')
-rw-r--r--git/test/test_index.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/git/test/test_index.py b/git/test/test_index.py
index 9d75da53..b902f4d5 100644
--- a/git/test/test_index.py
+++ b/git/test/test_index.py
@@ -14,6 +14,7 @@ import glob
import shutil
from stat import *
+
class TestIndex(TestBase):
def __init__(self, *args):
@@ -122,7 +123,6 @@ class TestIndex(TestBase):
three_way_index = IndexFile.from_tree(rw_repo, common_ancestor_sha, cur_sha, other_sha)
assert len(list(e for e in three_way_index.entries.values() if e.stage != 0))
-
# ITERATE BLOBS
merge_required = lambda t: t[0] != 0
merge_blobs = list(three_way_index.iter_blobs(merge_required))
@@ -135,7 +135,6 @@ class TestIndex(TestBase):
for stage, blob in base_index.iter_blobs(BlobFilter([prefix])):
assert blob.path.startswith(prefix)
-
# writing a tree should fail with an unmerged index
self.failUnlessRaises(UnmergedEntriesError, three_way_index.write_tree)
@@ -213,7 +212,6 @@ class TestIndex(TestBase):
unmerged_blobs = unmerged_tree.unmerged_blobs()
assert len(unmerged_blobs) == 1 and unmerged_blobs.keys()[0] == manifest_key[0]
-
@with_rw_repo('0.1.6')
def test_index_file_diffing(self, rw_repo):
# default Index instance points to our index
@@ -572,10 +570,10 @@ class TestIndex(TestBase):
rval = index.move(['doc', 'test'])
assert_mv_rval(rval)
-
# TEST PATH REWRITING
######################
count = [0]
+
def rewriter(entry):
rval = str(count[0])
count[0] += 1
@@ -601,7 +599,6 @@ class TestIndex(TestBase):
for filenum in range(len(paths)):
assert index.entry_key(str(filenum), 0) in index.entries
-
# TEST RESET ON PATHS
######################
arela = "aa"
@@ -640,7 +637,6 @@ class TestIndex(TestBase):
for absfile in absfiles:
assert os.path.isfile(absfile)
-
@with_rw_repo('HEAD')
def test_compare_write_tree(self, rw_repo):
# write all trees and compare them