Files
qdrant-client/tests/congruence_tests/conftest.py
George a2adc2d2ad new: deprecate upload records, update tests, prohibit migration of co… (#447)
* new: deprecate upload records, update tests, prohibit migration of collections with custom shards

* Update qdrant_client/qdrant_client.py

* Update qdrant_client/async_qdrant_client.py

* new: replace autogenerated int ids with uuids (#448)

* fix: remove redundant kwargs

* fix: regen async

* fix: remove redundant import

---------

Co-authored-by: Andrey Vasnetsov <andrey@vasnetsov.com>
2024-01-19 20:11:31 +01:00

26 lines
588 B
Python

import pytest
from qdrant_client import QdrantClient
from tests.congruence_tests.test_common import (
delete_fixture_collection,
init_local,
init_remote,
initialize_fixture_collection,
)
@pytest.fixture
def local_client() -> QdrantClient:
client: QdrantClient = init_local()
initialize_fixture_collection(client)
yield client
delete_fixture_collection(client)
@pytest.fixture
def remote_client() -> QdrantClient:
client: QdrantClient = init_remote()
initialize_fixture_collection(client)
yield client
delete_fixture_collection(client)