aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/tests
diff options
context:
space:
mode:
Diffstat (limited to 'pydis_site/apps/api/tests')
-rw-r--r--pydis_site/apps/api/tests/test_users.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_site/apps/api/tests/test_users.py b/pydis_site/apps/api/tests/test_users.py
index 9c0fa6ba..d86e80bb 100644
--- a/pydis_site/apps/api/tests/test_users.py
+++ b/pydis_site/apps/api/tests/test_users.py
@@ -505,7 +505,7 @@ class UserMetricityTests(AuthenticatedAPITestCase):
def test_metricity_activity_data(self):
# Given
self.mock_no_metricity_user() # Other functions shouldn't be used.
- self.metricity.total_messages_in_past_n_days.return_value = [[0, 10]]
+ self.metricity.total_messages_in_past_n_days.return_value = [(0, 10)]
# When
url = reverse("api:bot:user-metricity-activity-data")
@@ -518,7 +518,7 @@ class UserMetricityTests(AuthenticatedAPITestCase):
# Then
self.assertEqual(response.status_code, 200)
self.metricity.total_messages_in_past_n_days.assert_called_once_with(["0", "1"], 10)
- self.assertEqual(response.json(), [{"id": 0, "message_count": 10}])
+ self.assertEqual(response.json(), {"0": 10, "1": 0})
def test_metricity_activity_data_invalid_days(self):
# Given