Add tests

This commit is contained in:
Joakim Hellsén 2024-03-15 14:35:07 +01:00
commit 57267df15c
No known key found for this signature in database
GPG key ID: D196AE66FEBE1DC9
4 changed files with 195 additions and 3 deletions

View file

@ -269,7 +269,7 @@ class RobotsView(View):
def get(self, request: HttpRequest) -> HttpResponse: # noqa: ARG002
"""Load the robots.txt file."""
return HttpResponse(
content="""User-agent: *\nDisallow: /add\nDisallow: /upload\nDisallow: /accounts/""",
content="User-agent: *\nDisallow: /add\nDisallow: /upload\nDisallow: /accounts/",
content_type="text/plain",
)