aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar bendiller <[email protected]>2020-02-02 12:51:42 -0700
committerGravatar bendiller <[email protected]>2020-02-02 12:51:42 -0700
commitba5532eaf2eb2ceef938d19e5c78af5129dc66e2 (patch)
treee77f8b9310cc28bc298b4bee5c1fcbe262fc2e4e
parentRework test_patch_updates_record to avoid list API endpoint (diff)
Improve deletion test (asserting that deleted record no longer exists)
-rw-r--r--pydis_site/apps/api/tests/test_reminders.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pydis_site/apps/api/tests/test_reminders.py b/pydis_site/apps/api/tests/test_reminders.py
index 06a194c1..a06a5974 100644
--- a/pydis_site/apps/api/tests/test_reminders.py
+++ b/pydis_site/apps/api/tests/test_reminders.py
@@ -107,6 +107,7 @@ class ReminderDeletionTests(APISubdomainTestCase):
response = self.client.delete(url)
self.assertEqual(response.status_code, 204)
+ self.assertRaises(Reminder.DoesNotExist, Reminder.objects.get, **{'id': self.reminder.id})
class ReminderUpdateTests(APISubdomainTestCase):