We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c17d821 commit 4efe1b7Copy full SHA for 4efe1b7
django/contrib/sitemaps/tests/test_flatpages.py
@@ -38,7 +38,9 @@ def test_flatpage_sitemap(self):
38
registration_required=True
39
)
40
private.sites.add(settings.SITE_ID)
41
- response = self.client.get('/flatpages/sitemap.xml')
+ with warnings.catch_warnings():
42
+ warnings.simplefilter('ignore')
43
+ response = self.client.get('/flatpages/sitemap.xml')
44
# Public flatpage should be in the sitemap
45
self.assertContains(response, '<loc>%s%s</loc>' % (self.base_url, public.url))
46
# Private flatpage should not be in the sitemap
0 commit comments