Mercurial > kallithea
changeset 6870:20f32aebc974
codingstyle: rename variable "hex" (conflicting with builtin)
author | Lars Kruse <devel@sumpfralle.de> |
---|---|
date | Fri, 25 Aug 2017 14:36:01 +0200 |
parents | 016481e43341 |
children | 26235543d64d |
files | kallithea/tests/vcs/test_git.py |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/tests/vcs/test_git.py Fri Aug 25 14:35:46 2017 +0200 +++ b/kallithea/tests/vcs/test_git.py Fri Aug 25 14:36:01 2017 +0200 @@ -273,9 +273,9 @@ the revision. This test is somewhat hard to write as order of tests is a key here. Written by running command after command in a shell. """ - hex = '2a13f185e4525f9d4b59882791a2d397b90d5ddc' - self.assertTrue(hex in self.repo.revisions) - chset = self.repo.get_changeset(hex) + commit_id = '2a13f185e4525f9d4b59882791a2d397b90d5ddc' + self.assertTrue(commit_id in self.repo.revisions) + chset = self.repo.get_changeset(commit_id) self.assertTrue(len(chset.nodes) == 0) root = chset.root self.assertTrue(len(chset.nodes) == 1) @@ -296,8 +296,8 @@ self.assertTrue(docs is chset.get_node('docs')) def test_nodes_with_changeset(self): - hex = '2a13f185e4525f9d4b59882791a2d397b90d5ddc' - chset = self.repo.get_changeset(hex) + commit_id = '2a13f185e4525f9d4b59882791a2d397b90d5ddc' + chset = self.repo.get_changeset(commit_id) root = chset.root docs = root.get_node('docs') self.assertTrue(docs is chset.get_node('docs'))