Browse Source

Update tests, don't double dispose the engine (#15587)

pull/15589/head
Sebastián Ramírez 2 weeks ago
committed by GitHub
parent
commit
00f805cec9
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      tests/test_tutorial/test_sql_databases/test_tutorial001.py
  2. 2
      tests/test_tutorial/test_sql_databases/test_tutorial002.py

2
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

2
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

Loading…
Cancel
Save