From 7369ac1c31867f58af2fab113f896b052a78a902 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Sep 04 2017 10:24:23 +0000 Subject: Expand the tests around the Merges keyword in commit messages Signed-off-by: Pierre-Yves Chibon --- diff --git a/tests/test_pagure_lib_link.py b/tests/test_pagure_lib_link.py index 6ad845e..4abf04d 100644 --- a/tests/test_pagure_lib_link.py +++ b/tests/test_pagure_lib_link.py @@ -250,6 +250,14 @@ class PagureLibLinktests(tests.Modeltests): ('myproject', '70')) project_match('Now we merge https://pagure.io/myproject/pull-request/99', ('myproject', '99')) + project_match('Merges http://localhost/fork/pingou/test/issue/1', + ('test', '1')) + project_match('Merges: http://localhost/fork/pingou/test/issue/12', + ('test', '12')) + project_match('Merged http://localhost/fork/pingou/test/issue/123#', + ('test', '123')) + project_match('Merge: http://localhost/fork/pingou/test/issue/1234#foo', + ('test', '1234')) # issue matches def issue_match(text, issue):