inspirehep / invenio-grobid

Invenio package for integration of the Grobid metadata extraction service
GNU General Public License v2.0
4 stars 3 forks source link

tests: enable view tests #18

Closed jacquerie closed 8 years ago

jacquerie commented 8 years ago

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.

jacquerie commented 8 years ago

This should really be split in two commits, one fixing Travis, one adding the tests.

jacquerie commented 8 years ago

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!

jalavik commented 8 years ago

@jacquerie Guess this is deprecated now?

jacquerie commented 8 years ago

We can close this, and maybe resurrect later if needed.