ashb commented on issue #4132: [AIRFLOW-3298] Return None if user not found in 
session.
URL: 
https://github.com/apache/incubator-airflow/pull/4132#issuecomment-435946042
 
 
   In tests/core.py there is a `test_login_logout_ldap` function - and I think 
you can add to the session via `self.app` as per 
http://flask.pocoo.org/docs/0.12/testing/#accessing-and-modifying-sessions
   
   Something like this:
   
   
   ```
   with self.app.session_transaction() as sess:
       sess['user-id'] = 42
       response = self.get('/admin/')
       # test something about response
   ```
   
   Guessing a bit at the ids an names, but this should give you a start 
hopefully.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to