Wizard

Tips

When writing tests:

Use Developer tools to see the form data.

To see the session data, add the following print statements to formtools/wizard/storage/session.py (session.py):

def _get_data(self):
    self.request.session.modified = True
    print(self.prefix)
    print(self.request.session[self.prefix])
    return self.request.session[self.prefix]

Example Django tests for the wizard: tests.py. These tests don’t set any session data - but that didn’t work for me: https://github.com/pkimber/block/commit/b4c822370de7dd2421fe55b03a263f9efa028310