Implement basic robots.txt #264

Merged
Dalai Felinto merged 2 commits from robots into main 2024-10-21 16:49:20 +02:00
Showing only changes of commit f1c0157d3b - Show all commits

View File

@ -309,3 +309,11 @@ class MyExtensionsTest(_BaseTestCase):
self.client.force_login(user)
response = self.client.get(reverse('extensions:manage-list'))
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")