File tree Expand file tree Collapse file tree
lib/semmle/python/frameworks/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,6 +113,9 @@ module NotExposed {
113113 }
114114
115115 predicate isAllowedModule ( Module mod ) {
116+ // for tests
117+ mod .getName ( ) = "find_subclass_test"
118+ or
116119 // don't include anything found in site-packages
117120 exists ( mod .getFile ( ) .getRelativePath ( ) ) and
118121 not mod .getFile ( ) .getRelativePath ( ) .regexpMatch ( "(?i)((^|/)examples?|^docs)/.*" ) and
Original file line number Diff line number Diff line change @@ -514,5 +514,9 @@ where
514514 ) and
515515 fullyQualifiedToYamlFormat ( newModelFullyQualified , type2 , path ) and
516516 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+ )
518522select spec .( string ) , type2 , path
You can’t perform that action at this time.
0 commit comments