Mocked session and gave that mock to form.csrf_provider to remove need for running any of the tests in isolated processes.