Python: Modernise zope web tests

This commit is contained in:
Rasmus Wriedt Larsen
2019-12-02 14:51:02 +01:00
committed by Rasmus Wriedt Larsen
parent e257ba40c4
commit 8b5d6ae2cf

View File

@@ -1,10 +1,10 @@
import python
import semmle.python.TestUtils
from ControlFlowNode f, Object o, ControlFlowNode x
from ControlFlowNode f, Value v, ControlFlowNode x
where
exists(ExprStmt s | s.getValue().getAFlowNode() = f) and
f.refersTo(o, x) and
f.pointsTo(v, x) and
f.getLocation().getFile().getBaseName() = "test.py"
select f.getLocation().getStartLine(), f.toString(), o.toString(),
select f.getLocation().getStartLine(), f.toString(), v.toString(),
remove_library_prefix(x.getLocation())