Change quoting style to MySQL, PostgreSQL or SQLite.
+ Add a test for print_tokens().
+
Version 0.0.6 (2016-09-25)
Condense a sequence of newlines after a /*! directive */;
--- /dev/null
+# -*- coding: utf-8 -*-
+
+try:
+ from cStringIO import StringIO
+except ImportError:
+ try:
+ from StringIO import StringIO
+ except ImportError:
+ from io import StringIO
+
+from sqlparse import parse
+from sqlconvert.print_tokens import print_tokens
+
+
+def test_print_tokens():
+ sio = StringIO()
+ parsed = parse("select * from T")[0]
+ print_tokens(parsed, outfile=sio)
+ assert sio.getvalue() == u"SELECT * FROM T"