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:
parent
1dee578907
commit
baf7e4505e
@ -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)
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user