exclude file name from coverage
This commit is contained in:
parent
561334e069
commit
9aef1482bf
1 changed files with 2 additions and 1 deletions
|
|
@ -70,7 +70,8 @@ class Message(models.Model):
|
||||||
return Message.objects.filter(sender=user).all()
|
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}'
|
return f'{instance.owner.username}/{filename}'
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue