Implement basic robots.txt #264
@ -309,3 +309,11 @@ class MyExtensionsTest(_BaseTestCase):
|
|||||||
self.client.force_login(user)
|
self.client.force_login(user)
|
||||||
response = self.client.get(reverse('extensions:manage-list'))
|
response = self.client.get(reverse('extensions:manage-list'))
|
||||||
self.assertContains(response, extension.name)
|
self.assertContains(response, extension.name)
|
||||||
|
|
||||||
|
|
||||||
|
class RobotsTxtTests(_BaseTestCase):
|
||||||
|
def test_get(self):
|
||||||
|
response = self.client.get("/robots.txt")
|
||||||
|
|
||||||
|
self.assertEqual(response.status_code, 200)
|
||||||
|
self.assertEqual(response["content-type"], "text/plain")
|
||||||
|
Loading…
Reference in New Issue
Block a user