2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 20:46:47 +00:00

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(): for plugin in registry.plugins.values():
new_path = Path(plugin.path) / dirname new_path = Path(plugin.path) / dirname
if Path(new_path).is_dir(): if Path(new_path).is_dir():
template_dirs.append(new_path) template_dirs.append(new_path) # pragma: no cover
return tuple(template_dirs) return tuple(template_dirs)

View File

@ -80,7 +80,7 @@ class InvenTreePluginBase():
if cfg: if cfg:
return cfg.active return cfg.active
else: else:
return False return False # pragma: no cover
# TODO @matmair remove after InvenTree 0.7.0 release # TODO @matmair remove after InvenTree 0.7.0 release

View File

@ -503,7 +503,7 @@ class PluginsRegistry:
try: try:
# for local path plugins # for local path plugins
plugin_path = '.'.join(pathlib.Path(plugin.path).relative_to(settings.BASE_DIR).parts) 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 is shipped as package
plugin_path = plugin.PLUGIN_NAME plugin_path = plugin.PLUGIN_NAME
return plugin_path return plugin_path