diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2024-03-08 18:22:31 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-03-09 08:15:50 +0100 |
commit | a7b51f023eae6d13684a7209f1ac4d4477381562 (patch) | |
tree | c17ed843bb361ea25ed9225a05cbdedb0641533f /tests | |
parent | 48d04871a4bc37946ebd0a028944ca6283ba820f (diff) | |
download | searxng-a7b51f023eae6d13684a7209f1ac4d4477381562.tar.gz searxng-a7b51f023eae6d13684a7209f1ac4d4477381562.zip |
[black] upgrade black 22.12.0 --> 24.2.0
The issue discussed in [1] has been solved since [2] has been merged into black
/ now we can upgrade without touching 69 files as it was needed with black
23.1.0 [3].
[1] https://github.com/searxng/searxng/pull/2159#issuecomment-1425723977
[2] https://github.com/psf/black/pull/4060
[3] https://github.com/searxng/searxng/pull/2159/files
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/engines/test_command.py | 1 | ||||
-rw-r--r-- | tests/unit/test_utils.py | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/engines/test_command.py b/tests/unit/engines/test_command.py index 7876dd55e..fa29c4e3f 100644 --- a/tests/unit/engines/test_command.py +++ b/tests/unit/engines/test_command.py @@ -14,7 +14,6 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >. ''' - from searx.engines import command as command_engine from tests import SearxTestCase diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 6398e63f0..dcb2cb9f2 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -207,7 +207,9 @@ class TestXPathUtils(SearxTestCase): l = utils.detect_language('The quick brown fox jumps over\nthe lazy dog') self.assertEqual(l, 'en') - l = utils.detect_language('いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす') + l = utils.detect_language( + 'いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす' + ) self.assertEqual(l, 'ja') l = utils.detect_language('Pijamalı hasta yağız şoföre çabucak güvendi.') |