(client, auth, app)
| 73 | |
| 74 | |
| 75 | def test_delete(client, auth, app): |
| 76 | auth.login() |
| 77 | response = client.post("/1/delete") |
| 78 | assert response.headers["Location"] == "/" |
| 79 | |
| 80 | with app.app_context(): |
| 81 | db = get_db() |
| 82 | post = db.execute("SELECT * FROM post WHERE id = 1").fetchone() |
| 83 | assert post is None |
nothing calls this directly
no test coverage detected