Mercurial > kallithea
changeset 6181:41882a2d41ef
helpers: test urlify_changeset through urlify_text
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 06 Sep 2016 00:51:18 +0200 |
parents | c3892e3a6ba3 |
children | 6944df7de4e1 |
files | kallithea/tests/other/test_libs.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/tests/other/test_libs.py Tue Sep 06 00:51:18 2016 +0200 +++ b/kallithea/tests/other/test_libs.py Tue Sep 06 00:51:18 2016 +0200 @@ -290,7 +290,7 @@ ("", ""), ("git-svn-id: https://svn.apache.org/repos/asf/libcloud/trunk@1441655 13f79535-47bb-0310-9956-ffa450edef68", - """git-svn-id: https://svn.apache.org/repos/asf/libcloud/trunk@1441655 13f79535-47bb-0310-9956-ffa450edef68"""), + """git-svn-id: <a href="https://svn.apache.org/repos/asf/libcloud/trunk@1441655">https://svn.apache.org/repos/asf/libcloud/trunk@1441655</a> 13f79535-47bb-0310-9956-ffa450edef68"""), ("from rev 000000000000", """from rev url[000000000000]"""), ("from rev 000000000000123123 also rev 000000000000", @@ -321,8 +321,8 @@ expected = self._quick_url(expected) with mock.patch('pylons.url', fake_url): - from kallithea.lib.helpers import urlify_changesets - assert urlify_changesets(sample, 'repo_name') == expected + from kallithea.lib.helpers import urlify_text + assert urlify_text(sample, 'repo_name') == expected @parametrize('sample,expected,url_', [ ("",