(app)
| 6 | |
| 7 | |
| 8 | def test_get_close_db(app): |
| 9 | with app.app_context(): |
| 10 | db = get_db() |
| 11 | assert db is get_db() |
| 12 | |
| 13 | with pytest.raises(sqlite3.ProgrammingError) as e: |
| 14 | db.execute("SELECT 1") |
| 15 | |
| 16 | assert "closed" in str(e.value) |
| 17 | |
| 18 | |
| 19 | def test_init_db_command(runner, monkeypatch): |
nothing calls this directly
no test coverage detected