tests: added more tests into initials generator
This commit is contained in:
parent
647974ef1a
commit
202b70bf48
1 changed files with 5 additions and 1 deletions
|
|
@ -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, email, expected, request_stub):
|
|||
('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...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue