Files
qdrant-client/tests/congruence_tests/conftest.py
Andrey Vasnetsov 392e3b6d1f Local qdrant (#137)
* 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>
2023-03-28 14:57:05 +02:00

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)