django-rest-framework icon indicating copy to clipboard operation
django-rest-framework copied to clipboard

Test the throttling class.

Open lovelydinosaur opened this issue 15 years ago • 3 comments

I've still not got around to actually testing that code etc. Be great to actually give it a bit of a once-over. If it's not obvious, or it's not working and not clear why, then what point do things get to? Get it working, with decent docstrings, and check the auto doc is sufficient for users to get started with it.

lovelydinosaur avatar May 12 '11 15:05 lovelydinosaur

I have a couple of tests coming

markotibold avatar Jun 10 '11 20:06 markotibold

I got stuck with writing a test while trying to login a user making use of django's test client as decribed here: https://docs.djangoproject.com/en/1.2/topics/testing/#django.test.client.Client.login

Any thoughts?

commit at BB: https://bitbucket.org/markotibold/django-rest-framework/changeset/d5dd57aa3e7b

markotibold avatar Jun 10 '11 22:06 markotibold

fixed

markotibold avatar Jun 11 '11 00:06 markotibold