diff --git a/flask_admin/tests/pymongo/conftest.py b/flask_admin/tests/pymongo/conftest.py index eb3dc2062..0b559ca44 100644 --- a/flask_admin/tests/pymongo/conftest.py +++ b/flask_admin/tests/pymongo/conftest.py @@ -9,6 +9,7 @@ def db(): client = MongoClient() db = client.tests yield db + client.close() @pytest.fixture