Skip to content

Commit

Permalink
Test backend and pipeline discovery only with pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspatzke committed Aug 22, 2023
1 parent 7842f2d commit a11caf8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sigma/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a11caf8

Please sign in to comment.