haystack/test/document_stores/test_opensearch.py
Massimiliano Pippi 374155fd5c
Move Opensearch document store in its own module (#2603)
* move OpenSearchDocumentStore into its own Python module

* Update Documentation & Code Style

* mark test with (sigh) elasticsearch

* skip opensearch tests on windows

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-06-08 16:37:23 +02:00

13 lines
328 B
Python

import sys
import pytest
from haystack.document_stores import OpenSearchDocumentStore
pytestmark = pytest.mark.skipif(sys.platform in ["win32", "cygwin"], reason="Opensearch not running on Windows CI")
@pytest.mark.elasticsearch
def test_init_opensearch_client():
OpenSearchDocumentStore(index="test_index", port=9201)