mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 03:00:54 +00:00
Merge branch 'inventree:master' into matmair/issue2385
This commit is contained in:
@ -69,7 +69,7 @@ class BarcodeMixin:
|
||||
Default implementation returns None
|
||||
"""
|
||||
|
||||
return None
|
||||
return None # pragma: no cover
|
||||
|
||||
def getStockItemByHash(self):
|
||||
"""
|
||||
@ -97,7 +97,7 @@ class BarcodeMixin:
|
||||
Default implementation returns None
|
||||
"""
|
||||
|
||||
return None
|
||||
return None # pragma: no cover
|
||||
|
||||
def renderStockLocation(self, loc):
|
||||
"""
|
||||
@ -113,7 +113,7 @@ class BarcodeMixin:
|
||||
Default implementation returns None
|
||||
"""
|
||||
|
||||
return None
|
||||
return None # pragma: no cover
|
||||
|
||||
def renderPart(self, part):
|
||||
"""
|
||||
@ -143,4 +143,4 @@ class BarcodeMixin:
|
||||
"""
|
||||
Default implementation returns False
|
||||
"""
|
||||
return False
|
||||
return False # pragma: no cover
|
||||
|
@ -56,7 +56,7 @@ class SettingsMixin:
|
||||
|
||||
if not plugin:
|
||||
# Cannot find associated plugin model, return
|
||||
return
|
||||
return # pragma: no cover
|
||||
|
||||
PluginSetting.set_setting(key, value, user, plugin=plugin)
|
||||
|
||||
@ -171,7 +171,7 @@ class ScheduleMixin:
|
||||
|
||||
if Schedule.objects.filter(name=task_name).exists():
|
||||
# Scheduled task already exists - continue!
|
||||
continue
|
||||
continue # pragma: no cover
|
||||
|
||||
logger.info(f"Adding scheduled task '{task_name}'")
|
||||
|
||||
@ -209,7 +209,7 @@ class ScheduleMixin:
|
||||
repeats=task.get('repeats', -1),
|
||||
)
|
||||
|
||||
except (ProgrammingError, OperationalError):
|
||||
except (ProgrammingError, OperationalError): # pragma: no cover
|
||||
# Database might not yet be ready
|
||||
logger.warning("register_tasks failed, database not ready")
|
||||
|
||||
@ -230,7 +230,7 @@ class ScheduleMixin:
|
||||
scheduled_task.delete()
|
||||
except Schedule.DoesNotExist:
|
||||
pass
|
||||
except (ProgrammingError, OperationalError):
|
||||
except (ProgrammingError, OperationalError): # pragma: no cover
|
||||
# Database might not yet be ready
|
||||
logger.warning("unregister_tasks failed, database not ready")
|
||||
|
||||
@ -408,7 +408,7 @@ class LabelPrintingMixin:
|
||||
"""
|
||||
MIXIN_NAME = 'Label printing'
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self): # pragma: no cover
|
||||
super().__init__()
|
||||
self.add_mixin('labels', True, __class__)
|
||||
|
||||
@ -426,7 +426,7 @@ class LabelPrintingMixin:
|
||||
"""
|
||||
|
||||
# Unimplemented (to be implemented by the particular plugin class)
|
||||
...
|
||||
... # pragma: no cover
|
||||
|
||||
|
||||
class APICallMixin:
|
||||
|
Reference in New Issue
Block a user