| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d40320b commit a4701a0
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -167,7 +167,7 @@ def update(self, op_code, cur_count, max_count=None, message=""): | |||
| 167 | 167 | open(new_file_path, "wb").close() # create new file in working tree | |
| 168 | 168 | cloned_repo.index.add([new_file_path]) # add it to the index | |
| 169 | 169 | # Commit the changes to deviate masters history | |
| 170 | - cloned_repo.index.commit("Added a new file in the past - for later merege") | ||
| 170 | + cloned_repo.index.commit("Added a new file in the past - for later merge") | ||
| 171 | 171 | ||
| 172 | 172 | # prepare a merge | |
| 173 | 173 | master = cloned_repo.heads.master # right-hand side is ahead of us, in the future | |
@@ -198,7 +198,7 @@ def update(self, op_code, cur_count, max_count=None, message=""): | |||
| 198 | 198 | ||
| 199 | 199 | # .gitmodules was written and added to the index, which is now being committed | |
| 200 | 200 | cloned_repo.index.commit("Added submodule") | |
| 201 | - assert sm.exists() and sm.module_exists() # this submodule is defintely available | ||
| 201 | + assert sm.exists() and sm.module_exists() # this submodule is definitely available | ||
| 202 | 202 | sm.remove(module=True, configuration=False) # remove the working tree | |
| 203 | 203 | assert sm.exists() and not sm.module_exists() # the submodule itself is still available | |
| 204 | 204 | ||
@@ -263,9 +263,9 @@ def test_references_and_objects(self, rw_dir): | |||
| 263 | 263 | # [8-test_references_and_objects] | |
| 264 | 264 | hc = repo.head.commit | |
| 265 | 265 | hct = hc.tree | |
| 266 | - hc != hct # noqa: B015 # @NoEffect | ||
| 267 | - hc != repo.tags[0] # noqa: B015 # @NoEffect | ||
| 268 | - hc == repo.head.reference.commit # noqa: B015 # @NoEffect | ||
| 266 | + assert hc != hct | ||
| 267 | + assert hc != repo.tags[0] | ||
| 268 | + assert hc == repo.head.reference.commit | ||
| 269 | 269 | # ![8-test_references_and_objects] | |
| 270 | 270 | ||
| 271 | 271 | # [9-test_references_and_objects] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -386,7 +386,7 @@ def test_head_reset(self, rw_repo): | |||
| 386 | 386 | head_tree = head.commit.tree | |
| 387 | 387 | self.assertRaises(ValueError, setattr, head, "commit", head_tree) | |
| 388 | 388 | assert head.commit == old_commit # and the ref did not change | |
| 389 | - # we allow heds to point to any object | ||
| 389 | + # we allow heads to point to any object | ||
| 390 | 390 | head.object = head_tree | |
| 391 | 391 | assert head.object == head_tree | |
| 392 | 392 | # cannot query tree as commit | |
@@ -489,7 +489,7 @@ def test_head_reset(self, rw_repo): | |||
| 489 | 489 | cur_head.reference.commit, | |
| 490 | 490 | ) | |
| 491 | 491 | # it works if the new ref points to the same reference | |
| 492 | - assert SymbolicReference.create(rw_repo, symref.path, symref.reference).path == symref.path # @NoEffect | ||
| 492 | + assert SymbolicReference.create(rw_repo, symref.path, symref.reference).path == symref.path | ||
| 493 | 493 | SymbolicReference.delete(rw_repo, symref) | |
| 494 | 494 | # would raise if the symref wouldn't have been deletedpbl | |
| 495 | 495 | symref = SymbolicReference.create(rw_repo, symref_path, cur_head.reference) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -111,7 +111,7 @@ def _do_base_tests(self, rwrepo): | |||
| 111 | 111 | ||
| 112 | 112 | # force it to reread its information | |
| 113 | 113 | del smold._url | |
| 114 | - smold.url == sm.url # noqa: B015 # @NoEffect | ||
| 114 | + smold.url == sm.url # noqa: B015 # FIXME: Should this be an assertion? | ||
| 115 | 115 | ||
| 116 | 116 | # test config_reader/writer methods | |
| 117 | 117 | sm.config_reader() | |
| Back | FazBrowse Home | New Git URL |
0 commit comments