CodeQL library for Python
codeql/python-all 0.6.4 (changelog, source)
Search

Module TestUtils

Import path

import semmle.python.TestUtils

Imports

Predicates

compact_location

Returns the location of an AST node in compact form: basename:line:column

remove_library_prefix

Removes the part of the resources/lib Python library path that may vary from machine to machine.

remove_prefix_before_substring

Removes everything up to the occurrence of sub in the string str