Closed jacquerie closed 8 years ago
This should really be split in two commits, one fixing Travis, one adding the tests.
Groan. My nifty decorator + context manager is actually useless: we just need to set TESTING = True
in the configuration and Flask automatically disables authentication. Oh well. TIL!
@jacquerie Guess this is deprecated now?
We can close this, and maybe resurrect later if needed.
It always bugged me that we have no clean way of testing authenticated views. This PR fixes this: using an idea I found on Stackoverflow, and some very helpful suggestions by @dset0x, here it is.