mirror of
https://github.com/searxng/searxng.git
synced 2024-12-12 20:36:27 +00:00
bb04699b17
Depending on the order the unit tests are executed, the searx.search module is initalized or not, issue reported in [1]:: Traceback (most recent call last): File "searxng/tests/unit/test_results.py", line 72, in test_result_merge_by_title self.container.extend('stract', [fake_result(engine='stract', title='short title')]) File "searxng/searx/results.py", line 243, in extend histogram_observe(standard_result_count, 'engine', engine_name, 'result', 'count') File "searxng/searx/metrics/__init__.py", line 49, in histogram_observe histogram_storage.get(*args).observe(duration) ^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'get' To ensure that the searx.search module is initialized, the - searx.engines.load_engines is replace by - searx.search.initialize [1] https://github.com/searxng/searxng/pull/3932#discussion_r1822406569 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de> |
||
---|---|---|
.. | ||
engines | ||
network | ||
processors | ||
settings | ||
__init__.py | ||
test_answerers.py | ||
test_engine_mariadb_server.py | ||
test_engine_tineye.py | ||
test_engines_init.py | ||
test_exceptions.py | ||
test_external_bangs.py | ||
test_locales.py | ||
test_plugin_calculator.py | ||
test_plugin_hash.py | ||
test_plugin_self_info.py | ||
test_plugins.py | ||
test_preferences.py | ||
test_query.py | ||
test_results.py | ||
test_search.py | ||
test_settings_loader.py | ||
test_toml.py | ||
test_utils.py | ||
test_webadapter.py | ||
test_webapp.py | ||
test_webutils.py |