diff --git a/rhodecode/tests/lib/test_libs.py b/rhodecode/tests/lib/test_libs.py --- a/rhodecode/tests/lib/test_libs.py +++ b/rhodecode/tests/lib/test_libs.py @@ -27,6 +27,7 @@ import datetime import string import mock import pytest +import functools from rhodecode.tests import no_newline_id_generator from rhodecode.tests.utils import run_test_concurrently @@ -87,7 +88,7 @@ def test_str2bool(str_bool, expected): assert str2bool(str_bool) == expected -@pytest.mark.parametrize("text, expected", reduce(lambda a1,a2:a1+a2, [ +@pytest.mark.parametrize("text, expected", functools.reduce(lambda a1, a2: a1+a2, [ [ (pref+"", []), (pref+"Hi there @marcink", ['marcink']), @@ -374,6 +375,9 @@ def test_gravatar_url_builder(tmpl_url, ('admin@rhodecode.com', '', 'Kuzminski', 'AK', '#104036'), # em+ln # non-ascii ('admin@rhodecode.com', 'Marcin', 'Śuzminski', 'MS', '#104036'), + ('admin@rhodecode.com', 'Łukasz', 'Śuzminski', 'LS', '#104036'), + ('admin@rhodecode.com', 'Fabian', 'Łukaszewski', 'FL', '#104036'), + ('marcin.śuzminski@rhodecode.com', '', '', 'MS', '#73000f'), # special cases, LDAP can provide those...