Testing PATCH requests with the django test client

439 views
Skip to first unread message

Peter Farmer

unread,
Mar 1, 2012, 5:16:58 AM3/1/12
to Tastypie
Hi,

Whilst trying to unit test my tastypie api I discovered the django
test client doesn't have a patch method for testing PATCH calls, I've
submitted patches to add "patch" to the test client, but until they
are accepted (and in a release) here is link to my workaround:

http://digidayoff.com/2012/03/01/unit-testing-patch-requests-with-djangos-test-client/


Thanks,

Peter
Reply all
Reply to author
Forward
0 new messages