ignore for coverage

This commit is contained in:
Matthias 2022-03-12 03:43:04 +01:00
parent 56ebb0fd0e
commit 4eaa655a7c
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -265,9 +265,9 @@ class RuleSet(models.Model):
model=model
)
def __str__(self, debug=False):
def __str__(self, debug=False): # pragma: no cover
""" Ruleset string representation """
if debug: # pragma: no cover
if debug:
# Makes debugging easier
return f'{str(self.group).ljust(15)}: {self.name.title().ljust(15)} | ' \
f'v: {str(self.can_view).ljust(5)} | a: {str(self.can_add).ljust(5)} | ' \
@ -574,7 +574,7 @@ class Owner(models.Model):
return owners
@staticmethod
def get_api_url():
def get_api_url(): # pragma: no cover
return reverse('api-owner-list')
class Meta: