Skip to content

Commit

Permalink
put tests in right spot
Browse files Browse the repository at this point in the history
  • Loading branch information
eavanvalkenburg committed Jan 15, 2025
1 parent 6cc63a7 commit 3dd77d2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# Copyright (c) Microsoft. All rights reserved.

import pytest
from unittest.mock import MagicMock, patch

import pytest
from pymongo import MongoClient

from semantic_kernel.connectors.memory.mongodb_atlas.mongodb_atlas_collection import MongoDBAtlasCollection
from semantic_kernel.data.record_definition import VectorStoreRecordDefinition


@pytest.fixture
def mock_mongo_client():
with patch("pymongo.MongoClient") as mock:
with patch("pymongo.AsyncMongoClient") as mock:
yield mock


Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
# Copyright (c) Microsoft. All rights reserved.

import pytest
from unittest.mock import MagicMock, patch

import pytest
from pymongo import MongoClient
from semantic_kernel.connectors.memory.mongodb_atlas.mongodb_atlas_store import MongoDBAtlasStore

from semantic_kernel.connectors.memory.mongodb_atlas.mongodb_atlas_collection import MongoDBAtlasCollection
from semantic_kernel.connectors.memory.mongodb_atlas.mongodb_atlas_store import MongoDBAtlasStore
from semantic_kernel.data.record_definition import VectorStoreRecordDefinition


@pytest.fixture
def mock_mongo_client():
with patch("pymongo.MongoClient") as mock:
with patch("pymongo.AsyncMongoClient") as mock:
yield mock


Expand Down

0 comments on commit 3dd77d2

Please sign in to comment.