Re: [pylons-discuss] testing users with webtest

2021-02-09 Thread Andreas Kaiser
On 9 Feb 2021, at 1:38, zsol...@gmail.com wrote: I'd like to use webtest to test my application's responses with an authenticated user. I tried everything with mocking, monkeypatch, etc. but couldn't figure out. I see that there is testing_securitypolicy but I have no idea how could I

Re: [pylons-discuss] testing users with webtest

2021-02-08 Thread Michael Merickel
On Feb 8, 2021, at 18:38, zsol...@gmail.com wrote: > > There are a few things which are confusing me here: > 1. I can remove get_cookie and get_csrf_token and just hard-code > 'dummy_csrf_token' into login / post(), and it still works. Am I missing > something here? The

[pylons-discuss] testing users with webtest

2021-02-08 Thread zsol...@gmail.com
Hi, I'd like to use webtest to test my application's responses with an authenticated user. I tried everything with mocking, monkeypatch, etc. but couldn't figure out. I see that there is testing_securitypolicy but I have no idea how could I integrate it with webtest. Finally I found the best