Запрос на слияние 'task' (#1) из task в master
This commit is contained in:
1 parent
3c4e8e6cee
commit
e3f6084527
19 files changed
+725
-115
No files matched your search
@@ -56,7 +56,19 @@ async def test_start_creates_client(mock_qdrant, settings):
|
||||
|
||||
await repo.start()
|
||||
|
||||
mock_class.assert_called_once_with(url="http://localhost:6333")
|
||||
mock_class.assert_called_once_with(url="http://localhost:6333", api_key=None)
|
||||
|
||||
|
||||
async def test_start_creates_client_with_api_key(mock_qdrant, settings):
|
||||
mock_class, _mock_instance = mock_qdrant
|
||||
settings.qdrant_api_key = "test-api-key"
|
||||
repo = QdrantRepository(settings)
|
||||
|
||||
await repo.start()
|
||||
|
||||
mock_class.assert_called_once_with(
|
||||
url="http://localhost:6333", api_key="test-api-key"
|
||||
)
|
||||
|
||||
|
||||
async def test_start_idempotent(mock_qdrant, settings):
|
||||
|
||||
Reference in new issue
Block a user