Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 96e79a2

Browse files
Rasmus Lerchedahl PetersenRasmus Lerchedahl Petersen
authored andcommitted
Python: restrict to python files
1 parent 6658ee9 commit 96e79a2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

python/ql/test/experimental/meta/ConceptsTest.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,10 @@ class HttpServerRouteSetupTest extends InlineExpectationsTest {
146146
class HttpServerHttpResponseTest extends InlineExpectationsTest {
147147
File file;
148148

149-
HttpServerHttpResponseTest() { this = "HttpServerHttpResponseTest: " + file }
149+
HttpServerHttpResponseTest() {
150+
file.getExtension() = "py" and
151+
this = "HttpServerHttpResponseTest: " + file
152+
}
150153

151154
override string getARelevantTag() { result in ["HttpResponse", "responseBody", "mimetype"] }
152155

0 commit comments

Comments
 (0)