Commit 73578316 authored by Luko van der Maas's avatar Luko van der Maas
Browse files

Merge branch 'tc/add-sitemap-test' into 'master'

Add test to verify sitemap does not throw error status

See merge request !1102
parents 5983259a 063e1076
......@@ -172,3 +172,11 @@ class WikiLoginTestCase(TestCase):
'password': 'wrong secret'})
self.assertEqual(response.status_code, 403)
self.assertEqual(response.json()['status'], 'error')
class SitemapTest(TestCase):
fixtures = ['members.json', 'member_groups.json']
def test_sitemap_success(self):
response = self.client.get('/sitemap.xml')
self.assertEqual(response.status_code, 200)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment