From 00f805cec94c0bf48c1f9a563535a3ab2e6f90ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Sat, 23 May 2026 19:02:16 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Update=20tests,=20don't=20double=20?= =?UTF-8?q?dispose=20the=20engine=20(#15587)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_tutorial/test_sql_databases/test_tutorial001.py | 2 -- tests/test_tutorial/test_sql_databases/test_tutorial002.py | 2 -- 2 files changed, 4 deletions(-) diff --git a/tests/test_tutorial/test_sql_databases/test_tutorial001.py b/tests/test_tutorial/test_sql_databases/test_tutorial001.py index cd6b3b11cf..787bb33163 100644 --- a/tests/test_tutorial/test_sql_databases/test_tutorial001.py +++ b/tests/test_tutorial/test_sql_databases/test_tutorial001.py @@ -45,8 +45,6 @@ def get_client(request: pytest.FixtureRequest): # Clean up connection explicitly to avoid resource warning mod.engine.dispose() - mod.engine.dispose() - def test_crud_app(client: TestClient): # TODO: this warns that SQLModel.from_orm is deprecated in Pydantic v1, refactor diff --git a/tests/test_tutorial/test_sql_databases/test_tutorial002.py b/tests/test_tutorial/test_sql_databases/test_tutorial002.py index 8037d886fb..fb1c679224 100644 --- a/tests/test_tutorial/test_sql_databases/test_tutorial002.py +++ b/tests/test_tutorial/test_sql_databases/test_tutorial002.py @@ -45,8 +45,6 @@ def get_client(request: pytest.FixtureRequest): # Clean up connection explicitly to avoid resource warning mod.engine.dispose() - mod.engine.dispose() - def test_crud_app(client: TestClient): # TODO: this warns that SQLModel.from_orm is deprecated in Pydantic v1, refactor