Skip to content

Commit

Permalink
filter detector template in tests (NVIDIA#874)
Browse files Browse the repository at this point in the history
Address testing of detector `template` class.

This might not be the long term solution.
  • Loading branch information
jmartin-tech authored Sep 3, 2024
2 parents b057ac9 + d69aa2d commit d92863f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/detectors/test_detectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]*)")
Expand Down

0 comments on commit d92863f

Please sign in to comment.