KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I would like to read some session variables from a test (Django TestCase) How to do that in a clean way ? def test_add_docs(self): """ Test add docs """ # I would access to the session here: self.request.session['documents_to_share_ids'] = [1] response = self.client.get(reverse(self.document_add_view_id, args=[1]), follow=True) self.assertEquals(response.status_code, 200)
Tags (comma-separated)
Save Edits
Cancel