From f21b8c56554af400c03a52462306f878f5d41288 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Nov 22 2017 13:39:26 +0000 Subject: Fix the unit-tests Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/api/fork.py b/pagure/api/fork.py index 1ec439d..1dc7f5e 100644 --- a/pagure/api/fork.py +++ b/pagure/api/fork.py @@ -730,11 +730,12 @@ def api_pull_request_add_flag(repo, requestid, username=None, namespace=None): '/fork///pull-request//subscribe', methods=['POST']) @API.route( - '/fork////pull-request//subscribe', - methods=['POST']) + '/fork////pull-request/' + '/subscribe', methods=['POST']) @api_login_required(acls=['issue_subscribe']) @api_method -def api_subscribe_pull_request(repo, requestid, username=None, namespace=None): +def api_subscribe_pull_request( + repo, requestid, username=None, namespace=None): """ Subscribe to an pull-request ---------------------------- diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index 89d01f8..7c9b325 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -416,8 +416,8 @@ identifier=identifier, filename=filepath) }}" {% endif %} - title="View file as of {{ patch_new_id|short }}"> - {{filepath | unicode}} + title="View file as of {{ patch_new_id|short }}">{{ + filepath | unicode }} {% endmacro %} {% if patch | hasattr('new_file_path') %}