Merge with master

This commit is contained in:
Oliver Falk
2025-09-26 11:30:57 +02:00

View File

@@ -169,16 +169,6 @@ class StatsTester(TestCase):
"avatar_url should start with https://libravatar.org/avatar/",
)
# Test top queried emails
self.assertIn("top_queried_emails", j, "top_queried_emails missing")
self.assertEqual(
len(j["top_queried_emails"]), 2, "should have 2 top queried emails"
)
self.assertEqual(
j["top_queried_emails"][0]["access_count"],
100,
"top email access count incorrect",
)
# Check that avatar_url is present and starts with the correct base URL
self.assertIn("avatar_url", j["top_queried_emails"][0], "avatar_url missing")
self.assertTrue(
@@ -188,16 +178,6 @@ class StatsTester(TestCase):
"avatar_url should start with https://libravatar.org/avatar/",
)
# Test top queried openids
self.assertIn("top_queried_openids", j, "top_queried_openids missing")
self.assertEqual(
len(j["top_queried_openids"]), 1, "should have 1 top queried openid"
)
self.assertEqual(
j["top_queried_openids"][0]["access_count"],
75,
"top openid access count incorrect",
)
# Check that avatar_url is present and starts with the correct base URL
self.assertIn("avatar_url", j["top_queried_openids"][0], "avatar_url missing")
self.assertTrue(