Tag Archives: django

Adding a session to a Django request generated by RequestFactory

The Django RequestFactory┬áis a useful tool for writing unit tests against Django views. I was using it to test some code that interacts with Cartridge, and ran into trouble because the RequestFactory doesn’t annotate request objects with Session objects, which … Continue reading

Posted in django | Tagged | 6 Comments