Skip to content

Commit

Permalink
use different collections
Browse files Browse the repository at this point in the history
  • Loading branch information
ZanSara committed Feb 14, 2024
1 parent e34f9a0 commit 7f5ed82
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions integrations/mongodb_atlas/tests/test_document_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0
import os
from uuid import uuid4
from unittest.mock import patch

import pytest
Expand All @@ -14,11 +15,11 @@


@pytest.fixture
def document_store():
def document_store(request):
store = MongoDBAtlasDocumentStore(
mongo_connection_string=os.environ["MONGO_CONNECTION_STRING"],
database_name="ClusterTest",
collection_name="test",
collection_name="test_"+request.node.name+str(uuid4()),
)
yield store
store._get_collection().drop()
Expand Down

0 comments on commit 7f5ed82

Please sign in to comment.