Skip to content

Commit 869033d

Browse files
author
Victor Zhou
committed
Don't enforce coverage for untestable line
To test this you would need to import an unused class into the module so that it's in `globals()`, and have the test know what class that is. Seems messy to me, and not worth what it would be testing.
1 parent e5e0b3c commit 869033d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

detect_secrets/plugins/common/initialize.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def from_plugin_classname(
158158
klass = globals()[plugin_classname]
159159

160160
# Make sure the instance is a BasePlugin type, before creating it.
161-
if not issubclass(klass, BasePlugin):
161+
if not issubclass(klass, BasePlugin): # pragma: no cover
162162
raise TypeError
163163

164164
try:

0 commit comments

Comments
 (0)