From 8ad6991fe65cbc0e5ef7b8bc6fe56047a16b00ac Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 12 2018 09:54:13 +0000 Subject: Fix typos in the tests Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/hooks/files/pagure_force_commit_hook.py b/pagure/hooks/files/pagure_force_commit_hook.py index 7aef071..6460b51 100755 --- a/pagure/hooks/files/pagure_force_commit_hook.py +++ b/pagure/hooks/files/pagure_force_commit_hook.py @@ -48,9 +48,10 @@ def run_as_pre_receive_hook(): # Get the list of branches branches = [] if repo.pagure_force_commit_hook: - branch.strip() - for branch in repo.pagure_force_commit_hook.branches.split(',') - if branch.strip()] + branches = [ + branch.strip() + for branch in repo.pagure_force_commit_hook.branches.split(',') + if branch.strip()] for line in sys.stdin: if _config.get('HOOK_DEBUG', False): diff --git a/tests/test_pagure_flask_ui_repo.py b/tests/test_pagure_flask_ui_repo.py index f53aaa9..4196664 100644 --- a/tests/test_pagure_flask_ui_repo.py +++ b/tests/test_pagure_flask_ui_repo.py @@ -2249,7 +2249,7 @@ class PagureFlaskRepotests(tests.Modeltests): # View for a commit repo_obj = pygit2.Repository( - os.path.join(self.path, 'repos', 'test.git')_) + os.path.join(self.path, 'repos', 'test.git')) commit = repo_obj[repo_obj.head.target] parent = commit.parents[0].oid.hex