summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorluz paz <luzpaz@pm.me>2022-05-07 15:59:10 -0400
committerluz paz <luzpaz@pm.me>2022-05-07 15:59:10 -0400
commitdde3a8bd9229ff25ec8bc03c35d937f43233f48e (patch)
treee4db57c467db566901d53881012f1ccfe3ca9d4a /test
parentb3166ece31bfb29e89f6ed4bb9214bf1c03791df (diff)
downloadgitpython-dde3a8bd9229ff25ec8bc03c35d937f43233f48e.tar.gz
Fix various typos
Found via `codespell -q 3 -S ./git/ext/gitdb,./test/fixtures/reflog_master,./test/fixtures/diff_mode_only,./test/fixtures/reflog_HEAD`
Diffstat (limited to 'test')
-rw-r--r--test/fixtures/diff_p2
-rw-r--r--test/fixtures/git_config2
-rw-r--r--test/fixtures/rev_list_bisect_all2
-rw-r--r--test/test_config.py2
-rw-r--r--test/test_diff.py2
-rw-r--r--test/test_docs.py2
-rw-r--r--test/test_git.py2
-rw-r--r--test/test_index.py2
-rw-r--r--test/test_submodule.py4
9 files changed, 10 insertions, 10 deletions
diff --git a/test/fixtures/diff_p b/test/fixtures/diff_p
index af4759e5..76242b58 100644
--- a/test/fixtures/diff_p
+++ b/test/fixtures/diff_p
@@ -397,7 +397,7 @@ index 1d5251d40fb65ac89184ec662a3e1b04d0c24861..98eeddda5ed2b0e215e21128112393bd
self.git_dir = git_dir
end
-- # Converstion hash from Ruby style options to git command line
+- # Conversion hash from Ruby style options to git command line
- # style options
- TRANSFORM = {:max_count => "--max-count=",
- :skip => "--skip=",
diff --git a/test/fixtures/git_config b/test/fixtures/git_config
index b8c178e3..a8cad56e 100644
--- a/test/fixtures/git_config
+++ b/test/fixtures/git_config
@@ -28,7 +28,7 @@
[branch "mainline_performance"]
remote = mainline
merge = refs/heads/master
-# section with value defined before include to be overriden
+# section with value defined before include to be overridden
[sec]
var0 = value0_main
[include]
diff --git a/test/fixtures/rev_list_bisect_all b/test/fixtures/rev_list_bisect_all
index 810b6609..342ea94a 100644
--- a/test/fixtures/rev_list_bisect_all
+++ b/test/fixtures/rev_list_bisect_all
@@ -40,7 +40,7 @@ committer David Aguilar <davvid@gmail.com> 1220418344 -0700
commit: handle --bisect-all output in Commit.list_from_string
Rui Abreu Ferrerira pointed out that "git rev-list --bisect-all"
- returns a slightly different format which we can easily accomodate
+ returns a slightly different format which we can easily accommodate
by changing the way we parse rev-list output.
http://groups.google.com/group/git-python/browse_thread/thread/aed1d5c4b31d5027
diff --git a/test/test_config.py b/test/test_config.py
index 8892b839..50d9b010 100644
--- a/test/test_config.py
+++ b/test/test_config.py
@@ -175,7 +175,7 @@ class TestBase(TestCase):
assert num_sections and num_options
assert r_config._is_initialized is True
- # get value which doesnt exist, with default
+ # get value which doesn't exist, with default
default = "my default value"
assert r_config.get_value("doesnt", "exist", default) == default
diff --git a/test/test_diff.py b/test/test_diff.py
index 9b20893a..92e27f5d 100644
--- a/test/test_diff.py
+++ b/test/test_diff.py
@@ -273,7 +273,7 @@ class TestDiff(TestBase):
self.assertEqual(res[13].b_path, 'b/"with even more quotes"')
def test_diff_patch_format(self):
- # test all of the 'old' format diffs for completness - it should at least
+ # test all of the 'old' format diffs for completeness - it should at least
# be able to deal with it
fixtures = ("diff_2", "diff_2f", "diff_f", "diff_i", "diff_mode_only",
"diff_new_mode", "diff_numstat", "diff_p", "diff_rename",
diff --git a/test/test_docs.py b/test/test_docs.py
index 8897bbb7..08fc8439 100644
--- a/test/test_docs.py
+++ b/test/test_docs.py
@@ -135,7 +135,7 @@ class Tutorials(TestBase):
for fetch_info in origin.fetch(progress=MyProgressPrinter()):
print("Updated %s to %s" % (fetch_info.ref, fetch_info.commit))
# create a local branch at the latest fetched master. We specify the name statically, but you have all
- # information to do it programatically as well.
+ # information to do it programmatically as well.
bare_master = bare_repo.create_head('master', origin.refs.master)
bare_repo.head.set_reference(bare_master)
assert not bare_repo.delete_remote(origin).exists()
diff --git a/test/test_git.py b/test/test_git.py
index 7f52d650..10e21487 100644
--- a/test/test_git.py
+++ b/test/test_git.py
@@ -159,7 +159,7 @@ class TestGit(TestBase):
prev_cmd = self.git.GIT_PYTHON_GIT_EXECUTABLE
exc = GitCommandNotFound
try:
- # set it to something that doens't exist, assure it raises
+ # set it to something that doesn't exist, assure it raises
type(self.git).GIT_PYTHON_GIT_EXECUTABLE = osp.join(
"some", "path", "which", "doesn't", "exist", "gitbinary")
self.assertRaises(exc, self.git.version)
diff --git a/test/test_index.py b/test/test_index.py
index 233a4c64..4a20a8f6 100644
--- a/test/test_index.py
+++ b/test/test_index.py
@@ -936,4 +936,4 @@ class TestIndex(TestBase):
self.assertEqual(err.stderr, "\n stderr: 'stderr\n'")
assert str(err)
else:
- raise AssertionError("Should have cought a HookExecutionError")
+ raise AssertionError("Should have caught a HookExecutionError")
diff --git a/test/test_submodule.py b/test/test_submodule.py
index 3307bc78..a79123dc 100644
--- a/test/test_submodule.py
+++ b/test/test_submodule.py
@@ -546,7 +546,7 @@ class TestSubmodule(TestBase):
assert nsm.module().head.commit.hexsha == nsm.hexsha
nsm.module().index.add([nsm])
nsm.module().index.commit("added new file")
- rm.update(recursive=False, dry_run=True, progress=prog) # would not change head, and thus doens't fail
+ rm.update(recursive=False, dry_run=True, progress=prog) # would not change head, and thus doesn't fail
# Everything we can do from now on will trigger the 'future' check, so no is_dirty() check will even run
# This would only run if our local branch is in the past and we have uncommitted changes
@@ -730,7 +730,7 @@ class TestSubmodule(TestBase):
assert parent.head.commit.tree[sm.path].binsha == sm.binsha
assert sm_too.binsha == sm.binsha, "cached submodule should point to the same commit as updated one"
- added_bies = parent.index.add([sm]) # addded base-index-entries
+ added_bies = parent.index.add([sm]) # added base-index-entries
assert len(added_bies) == 1
parent.index.commit("add same submodule entry")
commit_sm = parent.head.commit.tree[sm.path]