Python: Move test annotation

This commit is contained in:
Rasmus Lerchedahl Petersen
2020-10-21 14:18:16 +02:00
parent 4571b3188c
commit 3a416bce2d
2 changed files with 3 additions and 3 deletions

View File

@@ -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"

View File

@@ -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"