summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVictor Uriarte <victor.m.uriarte@intel.com>2016-05-29 11:26:43 -0700
committerVictor Uriarte <victor.m.uriarte@intel.com>2016-05-29 12:50:20 -0700
commitaf37d16bae4f1c96d3936771d74424d1d54ddf74 (patch)
tree49b552a5848269659177037a221d7be1de0df2d2 /tests
parent5d77addc60bccd5ea72781d8fd08ba6502e3ae47 (diff)
downloadsqlparse-af37d16bae4f1c96d3936771d74424d1d54ddf74.tar.gz
Fix flake8 styling
Diffstat (limited to 'tests')
-rw-r--r--tests/test_functions.py3
-rw-r--r--tests/test_regressions.py4
2 files changed, 2 insertions, 5 deletions
diff --git a/tests/test_functions.py b/tests/test_functions.py
index 9207815..fd2774e 100644
--- a/tests/test_functions.py
+++ b/tests/test_functions.py
@@ -8,9 +8,6 @@ from unittest import main, TestCase
from sqlparse.filters import IncludeStatement, Tokens2Unicode
from sqlparse.lexer import tokenize
-import sys
-sys.path.insert(0, '..')
-
from sqlparse.filters import compact
from sqlparse.functions import getcolumns, getlimit, IsType
from tests.utils import FILES_DIR
diff --git a/tests/test_regressions.py b/tests/test_regressions.py
index c66a42d..13ca04b 100644
--- a/tests/test_regressions.py
+++ b/tests/test_regressions.py
@@ -7,7 +7,6 @@ from tests.utils import TestCaseBase, load_file
import sqlparse
from sqlparse import sql
from sqlparse import tokens as T
-from sqlparse.compat import u
class RegressionTests(TestCaseBase):
@@ -296,7 +295,8 @@ def test_issue213_leadingws():
def test_issue227_gettype_cte():
select_stmt = sqlparse.parse('SELECT 1, 2, 3 FROM foo;')
assert select_stmt[0].get_type() == 'SELECT'
- with_stmt = sqlparse.parse('WITH foo AS (SELECT 1, 2, 3) SELECT * FROM foo;')
+ with_stmt = sqlparse.parse('WITH foo AS (SELECT 1, 2, 3)'
+ 'SELECT * FROM foo;')
assert with_stmt[0].get_type() == 'SELECT'
with2_stmt = sqlparse.parse('''
WITH foo AS (SELECT 1 AS abc, 2 AS def),