# Path: format_sql/parser.py
# class InvalidSQL(Exception):
#     pass
# 
# Path: format_sql/shortcuts.py
# def format_sql(s, debug=False):
#     tokens = list(tokenize(s))
#     if debug:
#         print_non_data('Tokens: %s' % tokens)
#     parsed = list(parse(tokens))
#     if debug:
#         print_non_data('Statements: %s' % parsed)
#     styled = style(parsed)
#     if debug:
#         print_non_data('Output: %s' % styled)
#     return styled


import pytest
from format_sql.parser import InvalidSQL
from format_sql.shortcuts import format_sql
# -*- coding: utf-8 -*-
"""
format-sql
Makes your SQL readable.

Copyright (c) 2014, Friedrich Paetzke (paetzke@fastmail.fm)
All rights reserved.

"""


def test_():
    with pytest.raises(InvalidSQL):

# Path: format_sql/parser.py
# class InvalidSQL(Exception):
#     pass
# 
# Path: format_sql/shortcuts.py
# def format_sql(s, debug=False):
#     tokens = list(tokenize(s))
#     if debug:
#         print_non_data('Tokens: %s' % tokens)
#     parsed = list(parse(tokens))
#     if debug:
#         print_non_data('Statements: %s' % parsed)
#     styled = style(parsed)
#     if debug:
#         print_non_data('Output: %s' % styled)
#     return styled


# Path: tests/test_shortcuts.py
import pytest
from format_sql.parser import InvalidSQL
from format_sql.shortcuts import format_sql

# -*- coding: utf-8 -*-
"""
format-sql
Makes your SQL readable.

Copyright (c) 2014, Friedrich Paetzke (paetzke@fastmail.fm)
All rights reserved.

"""


def test_():
    with pytest.raises(InvalidSQL):

        format_sql("Select x T K")