(client, auth, app)
| 44 | |
| 45 | |
| 46 | def test_create(client, auth, app): |
| 47 | auth.login() |
| 48 | assert client.get("/create").status_code == 200 |
| 49 | client.post("/create", data={"title": "created", "body": ""}) |
| 50 | |
| 51 | with app.app_context(): |
| 52 | db = get_db() |
| 53 | count = db.execute("SELECT COUNT(id) FROM post").fetchone()[0] |
| 54 | assert count == 2 |
| 55 | |
| 56 | |
| 57 | def test_update(client, auth, app): |
nothing calls this directly
no test coverage detected