Skip to content

Commit 0a1c91f

Browse files
committed
Python: Autoformat web tests QL files
1 parent 5ab6457 commit 0a1c91f

File tree

31 files changed

+1
-94
lines changed

31 files changed

+1
-94
lines changed
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import python
2-
32
import semmle.python.web.bottle.General
43

54
from BottleRoute route
6-
75
select route.getUrl(), route.getFunction()

python/ql/test/library-tests/web/bottle/Sinks.ql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
21
import python
3-
42
import semmle.python.web.HttpRequest
53
import semmle.python.web.HttpResponse
64
import semmle.python.security.strings.Untrusted
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
21
import python
3-
42
import semmle.python.web.HttpRequest
53
import semmle.python.security.strings.Untrusted
64

7-
85
from TaintSource src, TaintKind kind
96
where src.isSourceOf(kind) and not kind.matches("tornado%")
107
select src.getLocation().toString(), src.(ControlFlowNode).getNode().toString(), kind
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
21
import python
3-
4-
52
import semmle.python.web.HttpRequest
63
import semmle.python.web.HttpResponse
74
import semmle.python.security.strings.Untrusted
85

9-
106
from TaintedNode node
11-
127
select node.getLocation().toString(), node.getAstNode().toString(), node.getTaintKind()
13-

python/ql/test/library-tests/web/cherrypy/Sinks.ql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
21
import python
3-
42
import semmle.python.web.HttpRequest
53
import semmle.python.web.HttpResponse
64
import semmle.python.security.strings.Untrusted
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
21
import python
3-
42
import semmle.python.web.HttpRequest
53
import semmle.python.security.strings.Untrusted
64

7-
85
from TaintSource src, TaintKind kind
96
where src.isSourceOf(kind) and not kind.matches("tornado%")
107
select src.getLocation().toString(), src.(ControlFlowNode).getNode().toString(), kind

python/ql/test/library-tests/web/django/Sinks.ql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
21
import python
3-
42
import semmle.python.web.HttpRequest
53
import semmle.python.web.HttpResponse
64
import semmle.python.web.django.Db
75
import semmle.python.web.django.Model
8-
96
import semmle.python.security.strings.Untrusted
107

118
from TaintSink sink, TaintKind kind
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
21
import python
3-
42
import semmle.python.web.HttpRequest
53
import semmle.python.security.strings.Untrusted
64

7-
85
from TaintSource src, TaintKind kind
96
where src.isSourceOf(kind)
107
select src.getLocation().toString(), src.(ControlFlowNode).getNode().toString(), kind
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import python
2-
32
import semmle.python.web.falcon.General
43

54
from FalconRoute route, string method
6-
75
select route.getUrl(), method, route.getHandlerFunction(method)
8-

python/ql/test/library-tests/web/falcon/Sinks.ql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
21
import python
3-
42
import semmle.python.web.HttpRequest
53
import semmle.python.web.HttpResponse
64
import semmle.python.security.strings.Untrusted

0 commit comments

Comments
 (0)