Show More
@@ -27,6 +27,7 b' import datetime' | |||||
27 | import string |
|
27 | import string | |
28 | import mock |
|
28 | import mock | |
29 | import pytest |
|
29 | import pytest | |
|
30 | import functools | |||
30 |
|
31 | |||
31 | from rhodecode.tests import no_newline_id_generator |
|
32 | from rhodecode.tests import no_newline_id_generator | |
32 | from rhodecode.tests.utils import run_test_concurrently |
|
33 | from rhodecode.tests.utils import run_test_concurrently | |
@@ -87,7 +88,7 b' def test_str2bool(str_bool, expected):' | |||||
87 | assert str2bool(str_bool) == expected |
|
88 | assert str2bool(str_bool) == expected | |
88 |
|
89 | |||
89 |
|
90 | |||
90 | @pytest.mark.parametrize("text, expected", reduce(lambda a1,a2:a1+a2, [ |
|
91 | @pytest.mark.parametrize("text, expected", functools.reduce(lambda a1, a2: a1+a2, [ | |
91 | [ |
|
92 | [ | |
92 | (pref+"", []), |
|
93 | (pref+"", []), | |
93 | (pref+"Hi there @marcink", ['marcink']), |
|
94 | (pref+"Hi there @marcink", ['marcink']), | |
@@ -374,6 +375,9 b' def test_gravatar_url_builder(tmpl_url, ' | |||||
374 | ('admin@rhodecode.com', '', 'Kuzminski', 'AK', '#104036'), # em+ln |
|
375 | ('admin@rhodecode.com', '', 'Kuzminski', 'AK', '#104036'), # em+ln | |
375 | # non-ascii |
|
376 | # non-ascii | |
376 | ('admin@rhodecode.com', 'Marcin', 'Śuzminski', 'MS', '#104036'), |
|
377 | ('admin@rhodecode.com', 'Marcin', 'Śuzminski', 'MS', '#104036'), | |
|
378 | ('admin@rhodecode.com', 'Łukasz', 'Śuzminski', 'LS', '#104036'), | |||
|
379 | ('admin@rhodecode.com', 'Fabian', 'Łukaszewski', 'FL', '#104036'), | |||
|
380 | ||||
377 | ('marcin.śuzminski@rhodecode.com', '', '', 'MS', '#73000f'), |
|
381 | ('marcin.śuzminski@rhodecode.com', '', '', 'MS', '#73000f'), | |
378 |
|
382 | |||
379 | # special cases, LDAP can provide those... |
|
383 | # special cases, LDAP can provide those... |
General Comments 0
You need to be logged in to leave comments.
Login now