mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Python: Move test annotation
This commit is contained in:
@@ -24,5 +24,5 @@ def test_model():
|
||||
User.objects.extra("some sql") # $getSql="some sql"
|
||||
User.objects.extra(select="select", where="where", tables="tables", order_by="order_by") # $getSql="select" $getSql="where" $getSql="tables" $getSql="order_by"
|
||||
|
||||
raw = RawSQL("so raw") # $getSql="so raw"
|
||||
User.objects.annotate(val=raw)
|
||||
raw = RawSQL("so raw")
|
||||
User.objects.annotate(val=raw) # $getSql="so raw"
|
||||
|
||||
@@ -99,7 +99,7 @@ class SqlExecutionTest extends InlineExpectationsTest {
|
||||
exists(SqlExecution e, DataFlow::Node sql |
|
||||
exists(location.getFile().getRelativePath()) and
|
||||
sql = e.getSql() and
|
||||
location = sql.getLocation() and
|
||||
location = e.getLocation() and
|
||||
element = sql.toString() and
|
||||
value = value_from_expr(sql.asExpr()) and
|
||||
tag = "getSql"
|
||||
|
||||
Reference in New Issue
Block a user