mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
ignore for coverage
This commit is contained in:
parent
56ebb0fd0e
commit
4eaa655a7c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user