【发布时间】:2015-11-22 09:01:56
【问题描述】:
到目前为止,我还没有找到任何方法。
https://docs.djangoproject.com/en/1.8/topics/testing/tools/#django.test.Client.options
显示 options 允许 request.body 通过 get 请求,但找不到任何通过 post 请求传递的方法。任何想法,我一直在寻找几个小时。
【问题讨论】:
-
我不确定我是否理解这个问题。你想在测试发布请求中发送什么数据?
标签: python django unit-testing django-testing