mirror of
https://github.com/fastapi/fastapi.git
synced 2026-05-24 16:29:41 -04:00
✅ Update tests, don't double dispose the engine (#15587)
This commit is contained in:
committed by
GitHub
parent
3675137523
commit
00f805cec9
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user