mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
do not cover pacakge code - is not CI'd
This commit is contained in:
parent
1dee578907
commit
baf7e4505e
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user