Files
codeql/python/ql/test/library-tests/web/tornado/Classes.ql
Rasmus Wriedt Larsen 5b6675aa71 Python: Select location first in tornado Classes test
so it conforms with the general scheme in tests
2019-10-24 15:01:40 +02:00

10 lines
226 B
Plaintext

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