Guest User

Untitled

a guest
Feb 28th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1.  
  2. def test_connect(flaskapp):
  3. namespace = flaskapp.namespace
  4. _session_store = flaskapp.session_store
  5. _config = flaskapp.config
  6. _client = Client(_config)
  7. _app = flaskapp.app
  8.  
  9. @_app.route('/' + namespace + '/test')
  10. def home():
  11.  
  12. user = None
  13. if 'session_id' in session:
  14. user = _session_store.get(session['session_id'])
  15.  
  16. return render_template('index.html')
Advertisement
Add Comment
Please, Sign In to add comment