mirror of
https://github.com/fastapi/fastapi.git
synced 2026-09-30 15:24:41 -04:00
✅ Update tests, don't double dispose the engine (#15587)
This commit is contained in:
1 parent
3675137523
commit
00f805cec9
2 files changed
-4
No files matched your search
@@ -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