def test_current_session_uninitialized_app(flask_app):
    with flask_app.test_request_context():
        with pytest.raises(AttributeError):
            current_session()
Test accessing current_session without initializing an app
dataset/ETHPy150Open dtheodor/flask-sqlalchemy-session/tests/test_flask_sqlalchemy_session.py/test_current_session_uninitialized_app