()
| 173 | |
| 174 | |
| 175 | def test_session_transactions_no_null_sessions(): |
| 176 | app = flask.Flask(__name__) |
| 177 | |
| 178 | with app.test_client() as c: |
| 179 | with pytest.raises(RuntimeError) as e: |
| 180 | with c.session_transaction(): |
| 181 | pass |
| 182 | assert "Session backend did not open a session" in str(e.value) |
| 183 | |
| 184 | |
| 185 | def test_session_transactions_keep_context(app, client, req_ctx): |
nothing calls this directly
no test coverage detected