From d69aa2d225d5bae1375e092ef0c0d1efda02c0bf Mon Sep 17 00:00:00 2001 From: Jeffrey Martin Date: Tue, 3 Sep 2024 09:03:27 -0500 Subject: [PATCH] filter detector template in tests --- tests/detectors/test_detectors.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/detectors/test_detectors.py b/tests/detectors/test_detectors.py index b90cc5b20..4f610e510 100644 --- a/tests/detectors/test_detectors.py +++ b/tests/detectors/test_detectors.py @@ -19,7 +19,12 @@ DETECTORS = [ - classname for (classname, active) in _plugins.enumerate_plugins("detectors") + classname + for (classname, active) in _plugins.enumerate_plugins("detectors") + if classname + not in [ # filter detector classes used as templates + "detectors.packagehallucination.PackageHallucinationDetector", + ] ] BCP_LENIENT_RE = re.compile(r"[a-z]{2}([\-A-Za-z]*)")