Mirror test layout, domcontentloaded waits, backup DB writes outside threads

This commit is contained in:
2026-10-05 09:41:22 +02:00
parent 8f6c5be314
commit 622795c9a0
46 changed files with 296 additions and 241 deletions
+10
View File
@@ -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