mirror of
https://github.com/qdrant/qdrant-client.git
synced 2026-08-02 08:00:57 -05:00
* base class for qdrant * WIP: implement local qdrant client * fix mypy * fix mypy * search tests * search tests * fix mypy * scroll test * filters: fixtures, tests, and fixes * fix types * fix types * fix types * fix: fix local CollectionInfo, add __test__ to avoid pytest complaints, fix typo * fix: fix typo in import * tests: add local upload tests (#139) * new: make local collection info more similar to remote one * new: add local upsert tests * tests: moved compare collections * scroll tests * recommendations test * tests: fix vector comparison in utils, add retrieve tests * fix: fix types * persistence test * fix: fix types * fix: fix db path creation * tests: add delete points tests, refactoring (#140) * skip local tests on old version * test aliases * test count * tests: add delete payload tests, move set and overwrite payload tests * tests: fix pytest warning * cover some more stuff with tests --------- Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
27 lines
612 B
Python
27 lines
612 B
Python
import pytest
|
|
|
|
from qdrant_client import QdrantClient
|
|
from qdrant_client.local.qdrant_local import QdrantLocal
|
|
from tests.congruence_tests.test_common import (
|
|
delete_fixture_collection,
|
|
init_local,
|
|
init_remote,
|
|
initialize_fixture_collection,
|
|
)
|
|
|
|
|
|
@pytest.fixture
|
|
def local_client():
|
|
client: QdrantLocal = init_local()
|
|
initialize_fixture_collection(client)
|
|
yield client
|
|
delete_fixture_collection(client)
|
|
|
|
|
|
@pytest.fixture
|
|
def remote_client():
|
|
client: QdrantClient = init_remote()
|
|
initialize_fixture_collection(client)
|
|
yield client
|
|
delete_fixture_collection(client)
|