Python: Select location first in tornado Classes test

so it conforms with the general scheme in tests
This commit is contained in:
Rasmus Wriedt Larsen
2019-10-24 14:57:21 +02:00
parent e7eaf2b7d9
commit 5b6675aa71
2 changed files with 5 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
| class DeepInheritance | test.py:23 |
| class Handler1 | test.py:4 |
| class Handler2 | test.py:8 |
| class Handler3 | test.py:14 |
| test.py:4 | class Handler1 |
| test.py:8 | class Handler2 |
| test.py:14 | class Handler3 |
| test.py:23 | class DeepInheritance |

View File

@@ -6,4 +6,4 @@ import semmle.python.TestUtils
import semmle.python.web.tornado.Tornado
from ClassValue cls
where cls = aTornadoRequestHandlerClass()
select cls.toString(), remove_library_prefix(cls.getScope().getLocation())
select remove_library_prefix(cls.getScope().getLocation()), cls.toString()