Skip to content

Commit

Permalink
Update reminder tests for new soft-deleted behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLovering committed May 9, 2024
1 parent 4d7376a commit 15efa78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pydis_site/apps/api/tests/test_reminders.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ def test_delete_known_reminder_returns_204(self):
response = self.client.delete(url)

self.assertEqual(response.status_code, 204)
self.assertRaises(Reminder.DoesNotExist, Reminder.objects.get, id=self.reminder.id)

response = self.client.get(reverse('api:bot:reminder-list'))
self.assertNotIn(self.reminder, response.json())


class ReminderListTests(AuthenticatedAPITestCase):
Expand Down

0 comments on commit 15efa78

Please sign in to comment.