I'll copy my reply from your django-users thread in case you didn't see it:

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 2:02:27 PM UTC-4, Marc Tamlyn wrote:
>
> It's quite possible this is an area which is untested - partly because 
> when it was originally written we didn't have the mock library to prevent 
> the external url call. Adding tests would be wonderful.
>
> Marc
>
> On 22 April 2015 at 17:29, ST LEON <[email protected] <javascript:>> 
> wrote:
>
>> I want to contribute one new feature to Django (doing this first time).
>>
>> I reading this 
>> <https://docs.djangoproject.com/en/dev/intro/contributing/> and have one 
>> question.
>>
>> First, write tests. I want to improve work of ping_google() 
>> <https://github.com/django/django/blob/master/django/contrib/sitemaps/__init__.py#L17>
>>  and 
>> add some new behavior. 
>>
>> But I can't find any tests that cover this function. 
>>
>> I think, that it might be here 
>> <https://github.com/django/django/tree/master/tests/sitemaps_tests>, 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 developers (Contributions to Django itself)" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/django-developers.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-developers/474b740a-adb2-4c72-b297-e91941bc3e63%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-developers/474b740a-adb2-4c72-b297-e91941bc3e63%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/50d2f680-d1a7-4212-9b7f-47fe1b662127%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to