File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,9 @@ markers = [
5757asyncio_mode = " auto"
5858asyncio_default_fixture_loop_scope = " function"
5959filterwarnings = [
60- " error"
60+ " error" ,
61+ # Ignore ResourceWarning raised by langchain standardized base classes.
62+ " ignore:unclosed <socket.socket:ResourceWarning" ,
6163]
6264
6365[tool .mypy ]
Original file line number Diff line number Diff line change 11from typing import Type
22
3- import pytest
43from langchain_tests .integration_tests import ToolsIntegrationTests
54
65from langchain_mongodb .agent_toolkit .tool import (
1211)
1312from tests .utils import create_database , create_llm
1413
15- # Ignore ResourceWarning raised by base class.
16- pytestmark = pytest .mark .filterwarnings ("ignore:unclosed:ResourceWarning" )
17-
1814
1915class TestQueryMongoDBDatabaseToolIntegration (ToolsIntegrationTests ):
2016 _db : MongoDBDatabase
Original file line number Diff line number Diff line change 1919DIMENSIONS = 6
2020
2121
22- # Ignore ResourceWarning raised by base class.
23- pytestmark = pytest .mark .filterwarnings ("ignore:unclosed:ResourceWarning" )
24-
25-
2622@pytest .fixture
2723def collection (client : MongoClient ) -> Collection :
2824 if COLLECTION_NAME not in client [DB_NAME ].list_collection_names ():
You can’t perform that action at this time.
0 commit comments