Mirror test layout, domcontentloaded waits, backup DB writes outside threads
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# retoor <retoor@molodetz.nl>
|
||||
from defusedxml import ElementTree
|
||||
|
||||
|
||||
def test_robots_and_sitemap(anon):
|
||||
assert "Sitemap:" in anon.get("/robots.txt").text
|
||||
sitemap = anon.get("/sitemap.xml")
|
||||
root = ElementTree.fromstring(sitemap.content)
|
||||
assert root.tag.endswith("urlset")
|
||||
assert len(list(root)) >= 5
|
||||
Reference in New Issue
Block a user