Beispiel #1
0
def assert_ebb_lint(source_text, source_path, error_locations):
    lint = EbbLint(ast.parse(source_text), source_path)
    actual = {
        (line, col, message[:4]) for line, col, message, _ in lint.run()}
    assert actual == set(error_locations)
Beispiel #2
0
def assert_ebb_lint(source_text, source_path, error_locations):
    lint = EbbLint(ast.parse(source_text), source_path)
    return [(line, col, message[:4]) for line, col, message, _ in lint.run()]