From e066c93875b3b9edcf6526728d81db7fe594e618 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 2 Oct 2016 00:13:45 +0300 Subject: [PATCH] Add a test for is_newline_statement() --- ChangeLog | 4 ++++ tests/test_process_tokens.py | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 797c8ed..9f735a7 100644 --- 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. diff --git a/tests/test_process_tokens.py b/tests/test_process_tokens.py index 277805e..0cc431c 100644 --- a/tests/test_process_tokens.py +++ b/tests/test_process_tokens.py @@ -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(): -- 2.39.5