diff options
author | 2021-06-24 07:34:59 -0700 | |
---|---|---|
committer | 2021-06-24 07:34:59 -0700 | |
commit | 05730b3c55811ec2b9c7c0ff8484714a3ee498b2 (patch) | |
tree | 707006f55c3062b13c389cfcd50014bb34ba8b6b /pydis_site/apps | |
parent | Adjust Message model to support new nitro messages with over 4000 chars (diff) |
Add pragma: no cover to mark failure condition of test as known ok
Diffstat (limited to 'pydis_site/apps')
-rw-r--r-- | pydis_site/apps/api/tests/test_models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/api/tests/test_models.py b/pydis_site/apps/api/tests/test_models.py index 1303639e..5c9ddea4 100644 --- a/pydis_site/apps/api/tests/test_models.py +++ b/pydis_site/apps/api/tests/test_models.py @@ -56,7 +56,7 @@ class NitroMessageLengthTest(TestCase): try: message.clean_fields() - except Exception as e: + except Exception as e: # pragma: no cover self.fail(f"Creation of message of length 3950 failed with: {e}") def test_create_failure(self): |