summaryrefslogtreecommitdiff
path: root/git/test
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2017-03-09 11:35:14 +0200
committerSebastian Thiel <byronimo@gmail.com>2017-03-09 11:03:29 +0100
commit8dffba51b4fd88f7d26a43cf6d1fbbe3cdb9f44d (patch)
tree09b460ad1445ca89c11206235665dfa2b3b4566c /git/test
parentc23ae3a48bb37ae7ebd6aacc8539fee090ca34bd (diff)
downloadgitpython-8dffba51b4fd88f7d26a43cf6d1fbbe3cdb9f44d.tar.gz
Spelling fixes
Diffstat (limited to 'git/test')
-rw-r--r--git/test/lib/helper.py2
-rw-r--r--git/test/test_config.py2
-rw-r--r--git/test/test_docs.py2
-rw-r--r--git/test/test_git.py4
-rw-r--r--git/test/test_remote.py2
-rw-r--r--git/test/test_repo.py2
6 files changed, 7 insertions, 7 deletions
diff --git a/git/test/lib/helper.py b/git/test/lib/helper.py
index c3960c24..7d9f6b95 100644
--- a/git/test/lib/helper.py
+++ b/git/test/lib/helper.py
@@ -227,7 +227,7 @@ def with_rw_and_rw_remote_repo(working_tree_ref):
Same as with_rw_repo, but also provides a writable remote repository from which the
rw_repo has been forked as well as a handle for a git-daemon that may be started to
run the remote_repo.
- The remote repository was cloned as bare repository from the rorepo, wheras
+ The remote repository was cloned as bare repository from the rorepo, whereas
the rw repo has a working tree and was cloned from the remote repository.
remote_repo has two remotes: origin and daemon_origin. One uses a local url,
diff --git a/git/test/test_config.py b/git/test/test_config.py
index 0dfadda6..7cf9d317 100644
--- a/git/test/test_config.py
+++ b/git/test/test_config.py
@@ -216,7 +216,7 @@ class TestBase(TestCase):
with self.assertRaises(cp.NoSectionError):
check_test_value(cr, tv)
- # But can make it skip includes alltogether, and thus allow write-backs
+ # But can make it skip includes altogether, and thus allow write-backs
with GitConfigParser(fpa, read_only=False, merge_includes=False) as cw:
write_test_value(cw, tv)
diff --git a/git/test/test_docs.py b/git/test/test_docs.py
index bb937d93..cbbd9447 100644
--- a/git/test/test_docs.py
+++ b/git/test/test_docs.py
@@ -433,7 +433,7 @@ class Tutorials(TestBase):
# reset the index and working tree to match the pointed-to commit
repo.head.reset(index=True, working_tree=True)
- # To detach your head, you have to point to a commit directy
+ # To detach your head, you have to point to a commit directly
repo.head.reference = repo.commit('HEAD~5')
assert repo.head.is_detached
# now our head points 15 commits into the past, whereas the working tree
diff --git a/git/test/test_git.py b/git/test/test_git.py
index f97f8130..3ab82b02 100644
--- a/git/test/test_git.py
+++ b/git/test/test_git.py
@@ -131,7 +131,7 @@ class TestGit(TestBase):
g.stdin.flush()
self.assertEqual(g.stdout.readline(), obj_info)
- # same can be achived using the respective command functions
+ # same can be achieved using the respective command functions
hexsha, typename, size = self.git.get_object_header(hexsha)
hexsha, typename_two, size_two, data = self.git.get_object_data(hexsha) # @UnusedVariable
self.assertEqual(typename, typename_two)
@@ -189,7 +189,7 @@ class TestGit(TestBase):
self.failUnlessRaises(ValueError, self.git.remote, 'add', insert_kwargs_after='foo')
def test_env_vars_passed_to_git(self):
- editor = 'non_existant_editor'
+ editor = 'non_existent_editor'
with mock.patch.dict('os.environ', {'GIT_EDITOR': editor}): # @UndefinedVariable
self.assertEqual(self.git.var("GIT_EDITOR"), editor)
diff --git a/git/test/test_remote.py b/git/test/test_remote.py
index 4e06fbaf..ad9210f6 100644
--- a/git/test/test_remote.py
+++ b/git/test/test_remote.py
@@ -163,7 +163,7 @@ class TestRemote(TestBase):
def _commit_random_file(self, repo):
# Create a file with a random name and random data and commit it to repo.
- # Return the commited absolute file path
+ # Return the committed absolute file path
index = repo.index
new_file = self._make_file(osp.basename(tempfile.mktemp()), str(random.random()), repo)
index.add([new_file])
diff --git a/git/test/test_repo.py b/git/test/test_repo.py
index 91c780dd..755d31d2 100644
--- a/git/test/test_repo.py
+++ b/git/test/test_repo.py
@@ -96,7 +96,7 @@ class TestRepo(TestBase):
Repo(tempfile.gettempdir())
@raises(NoSuchPathError)
- def test_new_should_raise_on_non_existant_path(self):
+ def test_new_should_raise_on_non_existent_path(self):
Repo("repos/foobar")
@with_rw_repo('0.3.2.1')