aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/tests
diff options
context:
space:
mode:
authorGravatar jchristgit <[email protected]>2025-05-01 20:38:56 +0200
committerGravatar GitHub <[email protected]>2025-05-01 18:38:56 +0000
commit56697a64f752c2d4d0ca599aa445e0a05855972a (patch)
tree9a04c7c98d02d3da31ed68254e9f89112e3d2c38 /pydis_site/apps/api/tests
parentMerge pull request #1499 from python-discord/dependabot/pip/djangorestframewo... (diff)
Do not require "active" to be sent in PATCH infraction (#1518)
Regression from the DRF update.
Diffstat (limited to 'pydis_site/apps/api/tests')
-rw-r--r--pydis_site/apps/api/tests/test_infractions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/api/tests/test_infractions.py b/pydis_site/apps/api/tests/test_infractions.py
index 4830833c..af568ea1 100644
--- a/pydis_site/apps/api/tests/test_infractions.py
+++ b/pydis_site/apps/api/tests/test_infractions.py
@@ -329,7 +329,7 @@ class InfractionTests(AuthenticatedAPITestCase):
def test_partial_update_returns_400_for_frozen_field(self):
url = reverse('api:bot:infraction-detail', args=(self.ban_hidden.id,))
- data = {'user': 6, 'active': True}
+ data = {'user': 6}
response = self.client.patch(url, data=data)
self.assertEqual(response.status_code, 400)