exclude file name from coverage

This commit is contained in:
Tom Irgang 2023-08-31 18:46:45 +02:00
parent 561334e069
commit 9aef1482bf

View file

@ -70,7 +70,8 @@ class Message(models.Model):
return Message.objects.filter(sender=user).all()
def attachment_file_path(instance, filename):
def attachment_file_path(instance, filename): # pragma: no cover
# manual test was ok, no unit test needed
return f'{instance.owner.username}/{filename}'