Add tests
This commit is contained in:
parent
19241803f2
commit
57267df15c
4 changed files with 195 additions and 3 deletions
|
|
@ -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",
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue