diff options
Diffstat (limited to 'git/test')
-rw-r--r-- | git/test/test_commit.py | 4 | ||||
-rw-r--r-- | git/test/test_refs.py | 6 | ||||
-rw-r--r-- | git/test/test_submodule.py | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/git/test/test_commit.py b/git/test/test_commit.py index 7bb019f4..e211f75b 100644 --- a/git/test/test_commit.py +++ b/git/test/test_commit.py @@ -73,7 +73,7 @@ class TestCommit(TestBase): commit = self.rorepo.commit('2454ae89983a4496a445ce347d7a41c0bb0ea7ae') # commits have no dict self.failUnlessRaises(AttributeError, setattr, commit, 'someattr', 1) - commit.author # bake + commit.author # bake assert_equal("Sebastian Thiel", commit.author.name) assert_equal("byronimo@gmail.com", commit.author.email) @@ -251,7 +251,7 @@ class TestCommit(TestBase): # Verify its serialization and deserialization cmt = self.rorepo.commit('0.1.6') assert isinstance(cmt.message, unicode) # it automatically decodes it as such - assert isinstance(cmt.author.name, unicode) # same here + assert isinstance(cmt.author.name, unicode) # same here cmt.message = "üäêèß".decode("utf-8") assert len(cmt.message) == 5 diff --git a/git/test/test_refs.py b/git/test/test_refs.py index 5658181d..f4f8b9d8 100644 --- a/git/test/test_refs.py +++ b/git/test/test_refs.py @@ -168,7 +168,7 @@ class TestRefs(TestBase): cur_head = rw_repo.head old_head_commit = cur_head.commit new_head_commit = cur_head.ref.commit.parents[0] - cur_head.reset(new_head_commit, index=True) # index only + cur_head.reset(new_head_commit, index=True) # index only assert cur_head.reference.commit == new_head_commit self.failUnlessRaises(ValueError, cur_head.reset, new_head_commit, index=False, working_tree=True) @@ -185,7 +185,7 @@ class TestRefs(TestBase): # we can do a mixed reset, and then checkout from the index though cur_head.reset(new_head_commit) - rw_repo.index.checkout(["lib"], force=True)# + rw_repo.index.checkout(["lib"], force=True) # now that we have a write write repo, change the HEAD reference - its # like git-reset --soft @@ -413,7 +413,7 @@ class TestRefs(TestBase): far_away_head.commit = ref.commit ref.rename(ex_ref_path) assert ref.path == ex_ref_path and ref.object == orig_obj - assert ref.rename(ref.path).path == ex_ref_path # rename to same name + assert ref.rename(ref.path).path == ex_ref_path # rename to same name # create symbolic refs symref_path = "symrefs/sym" diff --git a/git/test/test_submodule.py b/git/test/test_submodule.py index b657b25e..3f7ac39d 100644 --- a/git/test/test_submodule.py +++ b/git/test/test_submodule.py @@ -338,7 +338,7 @@ class TestSubmodule(TestBase): assert nsm.move(sm.path) is nsm # rename a module - nmp = join_path_native("new", "module", "dir") + "/" # new module path + nmp = join_path_native("new", "module", "dir") + "/" # new module path pmp = nsm.path abspmp = nsm.abspath assert nsm.move(nmp) is nsm @@ -447,7 +447,7 @@ class TestSubmodule(TestBase): sm.move(fp, module=False) # leave it at the old location assert not sm.module_exists() - cpathchange = rwrepo.index.commit("changed sm path") # finally we can commit + cpathchange = rwrepo.index.commit("changed sm path") # finally we can commit # update puts the module into place rm.update(recursive=False, progress=prog) @@ -549,7 +549,7 @@ class TestSubmodule(TestBase): # ================= # finally we recursively update a module, just to run the code at least once # remove the module so that it has more work - assert len(nsm.children()) >= 1 # could include smmap + assert len(nsm.children()) >= 1 # could include smmap assert nsm.exists() and nsm.module_exists() and len(nsm.children()) >= 1 # assure we pull locally only nsmc = nsm.children()[0] |