Le 30 sept. 2012 à 10:57, Mateusz Haligowski <mhaligow...@gmail.com> a écrit :

> I wanted to contribute to Django and decided to fix #18998. Starting with 
> writing tests, is seems to me that the easiest to write and read the test 
> would be using django.test.client.Client tool (sessions and stuff). Is it OK 
> to use that in testing contrib modules? If not, what is the suggested way?

Hi Mateusz,

Yes, using a django.test.TestCase and the test client is the recommended way to 
write integration tests.

For this ticket, you may find it more convenient to test auth.login() directly. 
It's up to you to find the right level of testing (unit / functional / 
integration).

-- 
Aymeric.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to