Skip to content

[patch]make cookies available in testmaker(version 0.3) #21

Open
@tocer

Description

--- testmaker.py 2011-09-08 13:12:48.346351096 +0800
+++ /tmp/vwI7FtA/7 2011-09-08 13:13:08.082909459 +0800
@@ -65,6 +65,8 @@
c = Client(REMOTE_ADDR='127.0.0.1')
getdict = request.GET.copy()
getdict['test_client_true'] = 'yes' #avoid recursion

  •            for key, value in request.COOKIES.items():
    
  •                c.cookies[key] = value
             response = c.get(request.path, getdict)
             self.serializer.save_response(request, response)
             self.processor.save_response(request, response)
    

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions