tempest/hacking/checks.py
def import_no_clients_in_api(physical_line, filename):
    """Check for client imports from tempest/api tests

    T102: Cannot import OpenStack python clients
    """

    if "tempest/api" in filename:
        res = PYTHON_CLIENT_RE.match(physical_line)
        if res:
            return (physical_line.find(res.group(1)),
                    ("T102: python clients import not allowed"
                     " in tempest/api/* tests"))
Check for client imports from tempest/api tests

    T102: Cannot import OpenStack python clients
    
Check for client imports from tempest/api tests
T102: Cannot import OpenStack python clients
Check for client imports from tempest / api tests T102 : Cannot import OpenStack python clients
def import_no_clients_in_api(physical_line, filename):
    if "tempest/api" in filename:
        res = PYTHON_CLIENT_RE.match(physical_line)
        if res:
            return (physical_line.find(res.group(1)),
                    ("T102: python clients import not allowed"
                     " in tempest/api/* tests"))
def import_no_clients_in_api ( physical_line , filename ) : if "tempest/api" in filename : res = PYTHON_CLIENT_RE . match ( physical_line ) if res : return ( physical_line . find ( res . group ( 1 ) ) , ( "T102: python clients import not allowed" " in tempest/api/* tests" ) )
Check for client imports from tempest/api tests
T102: Cannot import OpenStack python clients
Check for client imports from tempest / api tests T102 : Cannot import OpenStack python clients
"""Check for client imports from tempest/api tests

    T102: Cannot import OpenStack python clients
    """
physical_line
filename