aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/tests
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2021-09-22 10:49:36 +0100
committerGravatar Chris Lovering <[email protected]>2021-09-22 11:02:16 +0100
commit6abf47abd515ec789ad2f271dcbc48403a3e0d7e (patch)
treee2e109110c7c949f86e01a9df7eb6863ba992aa4 /pydis_site/apps/api/tests
parentPin psycopg version and re-lock (diff)
Rename an error to have a correct error suffix
Diffstat (limited to 'pydis_site/apps/api/tests')
-rw-r--r--pydis_site/apps/api/tests/test_users.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/pydis_site/apps/api/tests/test_users.py b/pydis_site/apps/api/tests/test_users.py
index c43b916a..ed5b4ce3 100644
--- a/pydis_site/apps/api/tests/test_users.py
+++ b/pydis_site/apps/api/tests/test_users.py
@@ -5,7 +5,7 @@ from django_hosts.resolvers import reverse
from .base import APISubdomainTestCase
from ..models import Role, User
-from ..models.bot.metricity import NotFound
+from ..models.bot.metricity import NotFoundError
class UnauthedUserAPITests(APISubdomainTestCase):
@@ -501,7 +501,7 @@ class UserMetricityTests(APISubdomainTestCase):
self.metricity = patcher.start()
self.addCleanup(patcher.stop)
self.metricity = self.metricity.return_value.__enter__.return_value
- self.metricity.user.side_effect = NotFound()
- self.metricity.total_messages.side_effect = NotFound()
- self.metricity.total_message_blocks.side_effect = NotFound()
- self.metricity.top_channel_activity.side_effect = NotFound()
+ self.metricity.user.side_effect = NotFoundError()
+ self.metricity.total_messages.side_effect = NotFoundError()
+ self.metricity.total_message_blocks.side_effect = NotFoundError()
+ self.metricity.top_channel_activity.side_effect = NotFoundError()