1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #23829 -- Made ping_google command/function use https for the sitemap URL.

This commit is contained in:
Sanyam Khurana
2019-01-10 15:30:00 +05:30
committed by Tim Graham
parent 6d73278d38
commit 76d31be2d0
6 changed files with 45 additions and 14 deletions

View File

@@ -10,8 +10,8 @@ class PingGoogleTests(SitemapTestsBase):
def test_default(self, ping_google_func):
call_command('ping_google')
ping_google_func.assert_called_with(sitemap_url=None)
ping_google_func.assert_called_with(sitemap_url=None, sitemap_uses_https=True)
def test_arg(self, ping_google_func):
call_command('ping_google', 'foo.xml')
ping_google_func.assert_called_with(sitemap_url='foo.xml')
def test_args(self, ping_google_func):
call_command('ping_google', 'foo.xml', '--sitemap-uses-http')
ping_google_func.assert_called_with(sitemap_url='foo.xml', sitemap_uses_https=False)