I've started porting my apps away from pyramid_ldap to pyramid_cas to rely on the university's CAS SSO and match other apps developed in-house by my department.
I started on a smaller app, and while the transition went fine, I am stuck with tests that cannot possibly pass or go on because as far as I can do, I can't get my test user recognized as logged in.
In normal usage, the way it works is : go to a restricted page => forbidden_view => redirect to SSO, login there => redirected back with a ticket => decode it => validate auth => view page. When testing, I can't just pass a random user/password to the external SSO and expect it to work, and using my own login/password is also out.
I'm using Pyramid 1.10.8, yes I know I need to move on, but that's for later. What would the best way to test the parts of my app that require authentication without having to actually do a full CAS SSO authentication ?
RL