Wednesday, April 22, 2015

Re: Writing some tests for new feature

There was some recent work done on allowing customizing the ping_google sitemap URL, but it wasn't completed: https://github.com/django/django/pull/3528

You could take inspiration from your tests from there.

On Wednesday, April 22, 2015 at 10:21:44 AM UTC-4, ST LEON wrote:
I want to contribute one new feature to Django (doing this first time).

I reading this and have one question.

First, write tests. I want to improve work of ping_google() and add some new behavior. 

But I can't find any tests that cover this function. 

I think, that it might be here, but I can't find tests for ping_google().

So, what should I do? That test needs me to see, how they works, change some of them and write new ones.

My changes aren't be so serious: just a very simple 2-3 new lines.

Please, help. 

Thanks!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1de315e4-2252-4c1b-b805-0da2f98a0c71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment