diff --git a/InvenTree/plugin/loader.py b/InvenTree/plugin/loader.py index aaba9fe060..538bd2358b 100644 --- a/InvenTree/plugin/loader.py +++ b/InvenTree/plugin/loader.py @@ -15,5 +15,5 @@ class PluginTemplateLoader(FilesystemLoader): for plugin in registry.plugins.values(): new_path = Path(plugin.path) / dirname if Path(new_path).is_dir(): - template_dirs.append(new_path) + template_dirs.append(new_path) # pragma: no cover return tuple(template_dirs) diff --git a/InvenTree/plugin/plugin.py b/InvenTree/plugin/plugin.py index b83297dcfd..c6af7f20d8 100644 --- a/InvenTree/plugin/plugin.py +++ b/InvenTree/plugin/plugin.py @@ -80,7 +80,7 @@ class InvenTreePluginBase(): if cfg: return cfg.active else: - return False + return False # pragma: no cover # TODO @matmair remove after InvenTree 0.7.0 release diff --git a/InvenTree/plugin/registry.py b/InvenTree/plugin/registry.py index 240bd3446b..9462b780cb 100644 --- a/InvenTree/plugin/registry.py +++ b/InvenTree/plugin/registry.py @@ -503,7 +503,7 @@ class PluginsRegistry: try: # for local path plugins plugin_path = '.'.join(pathlib.Path(plugin.path).relative_to(settings.BASE_DIR).parts) - except ValueError: + except ValueError: # pragma: no cover # plugin is shipped as package plugin_path = plugin.PLUGIN_NAME return plugin_path