Pylons / webtest

Wraps any WSGI application and makes it easy to send test requests to that application, without starting up an HTTP server.
https://docs.pylonsproject.org/projects/webtest/en/latest/
Other
336 stars 110 forks source link

How to pass the user via click() ? #159

Closed carn1x closed 8 years ago

carn1x commented 8 years ago

I have the following snippet:

        r = self.app.get(self.url_list, user=self.admin)
        r = r.click(href=self.url_edit)  # click on "edit"

Which results in a 403 response on the click() line. Should the click() be inheriting the session created in the get()? Is there some extra considerations to take? Thanks!

carn1x commented 8 years ago

Sorry, getting my wires crossed, I'm wrestling with Django Webtest instead