Re: [pylons-discuss] Re: unit-tests testapp fixture how to access request session

2024-06-14 Thread Jonathan Vanasco
> While debugging, I found that there is a different dbsession in the request object inside the testapp call than in the test function. Yes, that is expected. The TestApp encapsulates the application and the entire request lifecycle as if it were a normal application. The session is created and

Re: [pylons-discuss] Re: unit-tests testapp fixture how to access request session

2024-06-14 Thread Gerhard Schmidt
As I said. The sqlalchemy session is no longer a problem. It's the session object of the request I would like to access in the unit-test. Regards Estartu Am 11.06.24 um 18:42 schrieb Mike Orr: I don't know the answer directly, but that commonly occurs in test suites and you have to find a