es_url() pollutes the output with diagnostic messages when it is unable to
|
connect. Since we do not have the search engine packaged we simply skip all
|
tests that needs the engine.
|
|
--- elasticsearch-py-8.13.0/test_elasticsearch/conftest.py.orig
|
+++ elasticsearch-py-8.13.0/test_elasticsearch/conftest.py
|
@@ -26,10 +26,7 @@
|
|
@pytest.fixture(scope="session")
|
def elasticsearch_url():
|
- try:
|
- return es_url()
|
- except RuntimeError as e:
|
- pytest.skip(str(e))
|
+ pytest.skip("Needs the search engine")
|
|
|
@pytest.fixture(scope="session")
|
--- elasticsearch-py-8.13.0/test_elasticsearch/test_server/test_rest_api_spec.py.orig
|
+++ elasticsearch-py-8.13.0/test_elasticsearch/test_server/test_rest_api_spec.py
|
@@ -30,6 +30,7 @@
|
from typing import Tuple, Union
|
|
import pytest
|
+pytest.skip("Needs the search engine", allow_module_level=True)
|
import urllib3
|
import yaml
|
|