do not cover pacakge code - is not CI'd

This commit is contained in:
Matthias 2022-05-06 01:52:32 +02:00
parent 1dee578907
commit baf7e4505e
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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

View File

@ -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