ignore in coverage

This commit is contained in:
Matthias Mair 2025-10-18 22:03:53 +02:00
parent 72286c01ea
commit 0dabc04e0b
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ class FilteredSerializers(InvenTreeAPITestCase):
def sample(self, obj):
"""Sample method field."""
return 'sample'
return 'sample' # pragma: no cover
with self.assertRaises(Exception) as cm:
_ = BadSerializer()