re-enable smalltalk/cog-spur
[oi-userland.git] / components / python / elasticsearch / patches / 01-test-no-search-engine.patch
blobd5945d27e0cf84cbb3bb1db5e2ac7c874ada8b9a
1 es_url() pollutes the output with diagnostic messages when it is unable to
2 connect. Since we do not have the search engine packaged we simply skip all
3 tests that needs the engine.
5 --- elasticsearch-py-8.17.0/test_elasticsearch/conftest.py.orig
6 +++ elasticsearch-py-8.17.0/test_elasticsearch/conftest.py
7 @@ -26,10 +26,7 @@
9 @pytest.fixture(scope="session")
10 def elasticsearch_url():
11 - try:
12 - return es_url()
13 - except RuntimeError as e:
14 - pytest.skip(str(e))
15 + pytest.skip("Needs the search engine")
18 @pytest.fixture(scope="session")
19 --- elasticsearch-py-8.17.0/test_elasticsearch/test_server/test_rest_api_spec.py.orig
20 +++ elasticsearch-py-8.17.0/test_elasticsearch/test_server/test_rest_api_spec.py
21 @@ -29,6 +29,7 @@
22 from typing import Tuple, Union
24 import pytest
25 +pytest.skip("Needs the search engine", allow_module_level=True)
26 import urllib3
27 import yaml