Ticket #481 (new defect)
Opened 2 years ago
WebHelpers: Can't call secure_form.authentication_token() in a test
| Reported by: | mkanat | Owned by: | thejimmyg |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | widgets | Version: | 0.9.7 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
If I try to call webhelpers.html.secure_form.authentication_token() inside of a test, I get an error because you can't use pylons.session inside of a test (because there's no session bound to the thread). (This is in current WebHelpers dev code.)
Note: See
TracTickets for help on using
tickets.