7 lines
223 B
Python
7 lines
223 B
Python
|
def test_robots_txt(client):
|
||
|
res = client.get("/robots.txt")
|
||
|
assert res.status_code == 200
|
||
|
assert res["Content-Type"] == "text/plain"
|
||
|
content = res.content.decode("utf-8")
|
||
|
assert "User-Agent" in content
|