Focus on content

This commit is contained in:
2026-10-31 15:11:21 -04:00
parent 88ce1d1e03
commit 1c8daf01df
17 changed files with 3003 additions and 119 deletions
@@ -142,19 +142,23 @@ class ServiceDisplayTests(TestCase):
self.assertIn(f'src="https://{host}/', homepage_html)
self.assertNotIn("Dex · Shared sign-in", text)
projects = homepage_html.split('id="projects"', 1)[1].split("</section>", 1)[0]
self.assertIn('id="gitea-projects"', projects)
self.assertIn("https://gitea.eom.dev/explore/repos", projects)
self.assertIn('data-channels="eric_tech"', projects)
gaming = homepage_html.split('id="gaming"', 1)[1].split("</section>", 1)[0]
for label in ("Wikideck", "The Button", "Luanti"):
self.assertIn(label, projects)
self.assertNotIn("My Luanti server", projects)
self.assertIn("Season V · Public server", projects)
self.assertIn("eleven team islands, markets and an adventure-map spawn", projects)
self.assertIn("luanti.eom.dev:30000", projects)
self.assertIn(label, gaming)
self.assertNotIn("My Luanti server", gaming)
self.assertIn("Season V · Public server", gaming)
self.assertIn("eleven team islands, markets and an adventure-map spawn", gaming)
self.assertIn("luanti.eom.dev:30000", gaming)
for destination in (
"https://gitea.eom.dev/WikiDeck/wikideck",
"https://button.eom.dev/",
"https://discourse.eom.dev/t/luanti-season-v/690",
):
self.assertIn(destination, projects)
self.assertNotIn("Browser client source", projects)
self.assertIn(destination, gaming)
self.assertNotIn("Browser client source", gaming)
self.assertNotIn("Broadcast from your own stack", projects)
self.assertNotIn("Make patterns, make sound", projects)