We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf80408 commit 7befe11Copy full SHA for 7befe11
test_books_crud.py
@@ -16,8 +16,8 @@ async def startup_event():
16
17
@app.on_event("shutdown")
18
async def shutdown_event():
19
- app.mongodb_client.close()
20
app.database.drop_collection("books")
+ app.mongodb_client.close()
21
22
def test_create_book():
23
with TestClient(app) as client:
0 commit comments