aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/tests
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-10-10 20:36:18 +0300
committerGravatar GitHub <[email protected]>2020-10-10 20:36:18 +0300
commit42e34e955724eb47a505e24bcd03dc55c8e66419 (patch)
tree53a24c17e89050a701c61ee2dc3647728809a5f3 /pydis_site/apps/api/tests
parentDon't catch multiple object returned exception (diff)
Remove multiple objects returning test case
Diffstat (limited to 'pydis_site/apps/api/tests')
-rw-r--r--pydis_site/apps/api/tests/test_users.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pydis_site/apps/api/tests/test_users.py b/pydis_site/apps/api/tests/test_users.py
index e512f506..72ffcb3c 100644
--- a/pydis_site/apps/api/tests/test_users.py
+++ b/pydis_site/apps/api/tests/test_users.py
@@ -1,6 +1,6 @@
from unittest.mock import patch
-from django.core.exceptions import MultipleObjectsReturned, ObjectDoesNotExist
+from django.core.exceptions import ObjectDoesNotExist
from django_hosts.resolvers import reverse
from .base import APISubdomainTestCase
@@ -438,7 +438,6 @@ class UserMetricityTests(APISubdomainTestCase):
cases = [
{'exception': None, 'voice_banned': True},
{'exception': ObjectDoesNotExist, 'voice_banned': False},
- {'exception': MultipleObjectsReturned, 'voice_banned': True},
]
self.mock_metricity_user("foo", 1)