File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
lib/semmle/python/frameworks/internal Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,9 @@ module NotExposed {
113
113
}
114
114
115
115
predicate isAllowedModule ( Module mod ) {
116
+ // for tests
117
+ mod .getName ( ) = "find_subclass_test"
118
+ or
116
119
// don't include anything found in site-packages
117
120
exists ( mod .getFile ( ) .getRelativePath ( ) ) and
118
121
not mod .getFile ( ) .getRelativePath ( ) .regexpMatch ( "(?i)((^|/)examples?|^docs)/.*" ) and
Original file line number Diff line number Diff line change @@ -514,5 +514,9 @@ where
514
514
) and
515
515
fullyQualifiedToYamlFormat ( newModelFullyQualified , type2 , path ) and
516
516
not Extensions:: typeModel ( spec , type2 , path ) and
517
- not newModelFullyQualified .regexpMatch ( "(?i).*tests?_?.*" )
517
+ (
518
+ not newModelFullyQualified .regexpMatch ( "(?i).*tests?_?.*" )
519
+ or
520
+ type2 = "find_subclass_test"
521
+ )
518
522
select spec .( string ) , type2 , path
You can’t perform that action at this time.
0 commit comments