diff options
| -rw-r--r-- | pydis_site/apps/api/tests/test_filterlists.py | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/pydis_site/apps/api/tests/test_filterlists.py b/pydis_site/apps/api/tests/test_filterlists.py index b577c31c..47aaaf31 100644 --- a/pydis_site/apps/api/tests/test_filterlists.py +++ b/pydis_site/apps/api/tests/test_filterlists.py @@ -88,6 +88,11 @@ class CreationTests(APISubdomainTestCase):          response = self.client.post(URL, data=JPEG_ALLOWLIST)          self.assertEqual(response.status_code, 201) +    def test_returns_400_for_duplicate_creation(self): +        self.client.post(URL, data=JPEG_ALLOWLIST) +        response = self.client.post(URL, data=JPEG_ALLOWLIST) +        self.assertEqual(response.status_code, 400) +  class DeletionTests(APISubdomainTestCase):      @classmethod | 
