diff --git a/sigma/plugins.py b/sigma/plugins.py index b310e523..f26ce140 100644 --- a/sigma/plugins.py +++ b/sigma/plugins.py @@ -93,7 +93,9 @@ def is_duplicate(container, klass, name): if imported_module.__name__ in [ "sigma.pipelines.base", "sigma.pipelines.common", - ]: + ] or ( + imported_module.__name__.endswith(".test") and "pytest" not in sys.modules + ): continue # Add exported objects to submodules