]> git.phdru.name Git - sqlconvert.git/commitdiff
Add a test for is_newline_statement()
authorOleg Broytman <phd@phdru.name>
Sat, 1 Oct 2016 21:13:45 +0000 (00:13 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 1 Oct 2016 21:23:08 +0000 (00:23 +0300)
ChangeLog
tests/test_process_tokens.py

index 797c8ed7dd7af20889afb4b3c3bc0cba59fa3a96..9f735a7ee5ef231306b77b7026cc75f3dde89630 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Version 0.0.8 (2016-10-??)
+
+   Extend tests, increase test coverage.
+
 Version 0.0.7 (2016-09-27)
 
    Change quoting style to MySQL, PostgreSQL or SQLite.
index 277805e4acca58410fe6ff96a0de65ce84ffb083..0cc431ccb0614098ce5fd0c5ec72e99c508db2e6 100644 (file)
@@ -4,7 +4,12 @@ from pytest import raises
 from sqlparse import parse
 
 from sqlconvert.print_tokens import tlist2str
-from sqlconvert.process_tokens import StatementGrouper
+from sqlconvert.process_tokens import is_newline_statement, StatementGrouper
+
+
+def test_newline_statement():
+    parsed = parse("\n")[0]
+    assert is_newline_statement(parsed)
 
 
 def test_encoding():