[Flask] Jeff Levesque: need help unit testing flask redis session

Richard Clayton rclayton at uw.edu
Fri Oct 27 13:03:07 EDT 2017


I am currently out of the office.  I will be out of the office until Monday 11/6/2017.  If you need a response before 11/6 please contact the Lab Med computer staff at lmsrcomp at uw.edu.

On Oct 18, 2017, at 5:15 PM, Jeffrey Levesque via Flask <flask at python.org> wrote:

Hi guys,
I've implemented Redis with my flask login session. I've verified that it all works:

- https://github.com/jeff1evesque/machine-learning/pull/3073#issuecomment-337446563

However, I am trying to write a unit test (via pytest 'live_server'). So, immediately after '/login', and before the 'live_server' terminates its unit test, I query redis for all hash keys. Unfortunately, no keys are stored in Redis. This is strange because my application, just general use will store a cookie in the browser, containing the key, in Redis. Can anyone help me, or better organize my thoughts?

Thank you,

Jeff Levesque
https://github.com/jeff1evesque
_______________________________________________
Flask mailing list
Flask at python.org
https://mail.python.org/mailman/listinfo/flask
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20171027/4278f27a/attachment.html>


More information about the Flask mailing list