From: Oleg Broytman Date: Sat, 17 Sep 2016 15:53:41 +0000 (+0300) Subject: Remove mysql-specific requote_names from StatementGrouper's test X-Git-Tag: 0.0.6~21 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=3305d4aebb3ff106a573db216cdc8276d37e3d49;p=sqlconvert.git Remove mysql-specific requote_names from StatementGrouper's test --- diff --git a/tests/test_stgrouper.py b/tests/test_stgrouper.py index 88d0fcf..7bdca56 100644 --- a/tests/test_stgrouper.py +++ b/tests/test_stgrouper.py @@ -1,7 +1,6 @@ from pytest import raises from sqlconvert.print_tokens import tlist2str -from sqlconvert.process_mysql import requote_names from sqlconvert.process_tokens import StatementGrouper @@ -15,12 +14,11 @@ class TestStGrouper(object): def test_statements(self): grouper = StatementGrouper() - grouper.process_line("select * from `T`;") + grouper.process_line("select * from T;") assert grouper.statements assert len(grouper.statements) == 1 for statement in grouper.get_statements(): - requote_names(statement) query = tlist2str(statement) - assert query == 'SELECT * FROM "T";' + assert query == 'SELECT * FROM T;' assert len(grouper.statements) == 0 assert grouper.close() is None