mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-18 05:58:02 +00:00
Merge with master
This commit is contained in:
@@ -169,16 +169,6 @@ class StatsTester(TestCase):
|
|||||||
"avatar_url should start with https://libravatar.org/avatar/",
|
"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
|
# 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.assertIn("avatar_url", j["top_queried_emails"][0], "avatar_url missing")
|
||||||
self.assertTrue(
|
self.assertTrue(
|
||||||
@@ -188,16 +178,6 @@ class StatsTester(TestCase):
|
|||||||
"avatar_url should start with https://libravatar.org/avatar/",
|
"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
|
# 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.assertIn("avatar_url", j["top_queried_openids"][0], "avatar_url missing")
|
||||||
self.assertTrue(
|
self.assertTrue(
|
||||||
|
|||||||
Reference in New Issue
Block a user