summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Uriarte <victor.m.uriarte@intel.com>2017-02-07 18:47:34 -0700
committerVictor Uriarte <victor.m.uriarte@intel.com>2017-02-07 18:47:34 -0700
commit18dbc4d3aad10fa5d8fa206e7ba0d15dcf3fc52c (patch)
treec171ee1ad7da7b922e14961bed7bd6abf311ac69
parentb1c06469189a2ef09980e87ae80495e4d70d0a17 (diff)
downloadsqlparse-18dbc4d3aad10fa5d8fa206e7ba0d15dcf3fc52c.tar.gz
Update test with new behavior
-rw-r--r--tests/test_regressions.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_regressions.py b/tests/test_regressions.py
index b9a73a2..cf88419 100644
--- a/tests/test_regressions.py
+++ b/tests/test_regressions.py
@@ -43,13 +43,14 @@ def test_issue34(value):
def test_issue35():
- # missing space before LIMIT
+ # missing space before LIMIT. Updated for #321
sql = sqlparse.format("select * from foo where bar = 1 limit 1",
reindent=True)
assert sql == "\n".join([
"select *",
"from foo",
- "where bar = 1 limit 1"])
+ "where bar = 1",
+ "limit 1"])
def test_issue38():