| 1 |
import flask |
| 2 |
import flask_session |
| 3 |
import pytest |
| 4 |
|
| 5 |
|
| 6 |
def test_null_session(): |
| 7 |
"""Invalid session should fail to get/set the flask session""" |
| 8 |
with pytest.raises(ValueError): |
| 9 |
app = flask.Flask(__name__) |
| 10 |
app.secret_key = "alsdkfjaldkjsf" |
| 11 |
flask_session.Session(app) |