diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-05-05 18:33:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-05 18:33:16 +0200 |
| commit | 5b13786abb194dba3e562854de8fbb5a3fe8c2df (patch) | |
| tree | 50002f4c1c31d7e93897b70bc8a8aac946df0b6a /tests/unit/test_webapp.py | |
| parent | d36adfa59f242a8775ad74245c696d62b7727a36 (diff) | |
| parent | fa0d05c3131041eb44542e0b505eaed1833bf86e (diff) | |
Merge pull request #58 from searxng/mod-multithreading
[mod] multithreading only in searx.search.* packages
Diffstat (limited to 'tests/unit/test_webapp.py')
| -rw-r--r-- | tests/unit/test_webapp.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py index 9d83b7596..2cbdc83d6 100644 --- a/tests/unit/test_webapp.py +++ b/tests/unit/test_webapp.py @@ -5,14 +5,16 @@ from urllib.parse import ParseResult from mock import Mock from searx.testing import SearxTestCase from searx.search import Search -import searx.engines +import searx.search.processors class ViewsTestCase(SearxTestCase): def setUp(self): # skip init function (no external HTTP request) - self.setattr4test(searx.engines, 'initialize_engines', searx.engines.load_engines) + def dummy(*args, **kwargs): + pass + self.setattr4test(searx.search.processors, 'initialize_processor', dummy) from searx import webapp # pylint disable=import-outside-toplevel |