diff options
| author | Toby Mao <tmao@netflix.com> | 2019-03-13 15:39:47 -0700 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2019-06-26 12:38:24 +0200 |
| commit | 2555e38564a200799db3dda08930bc5c749b9b70 (patch) | |
| tree | 898aca3a9bcd4fca6480b432dcf68ca71aa40462 /tests | |
| parent | 5a3164d8db9ce5bbd64480bcb63eb1ac7a587151 (diff) | |
| download | sqlparse-2555e38564a200799db3dda08930bc5c749b9b70.tar.gz | |
Revert "Add in slash comment functionality"
This reverts commit 170010e7d709f2145169d23482d006dc56856256.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/files/slashcomment.sql | 5 | ||||
| -rw-r--r-- | tests/test_split.py | 16 |
2 files changed, 0 insertions, 21 deletions
diff --git a/tests/files/slashcomment.sql b/tests/files/slashcomment.sql deleted file mode 100644 index 90e3089..0000000 --- a/tests/files/slashcomment.sql +++ /dev/null @@ -1,5 +0,0 @@ -select * from user; -//select * from host; -select * from user; -select * // foo; -from foo; diff --git a/tests/test_split.py b/tests/test_split.py index ccb84a8..a93e3d4 100644 --- a/tests/test_split.py +++ b/tests/test_split.py @@ -52,22 +52,6 @@ def test_split_dashcomments_eol(s): assert len(stmts) == 1 -def test_split_slashcomments(load_file): - sql = load_file('slashcomment.sql') - stmts = sqlparse.parse(sql) - assert len(stmts) == 3 - assert ''.join(str(q) for q in stmts) == sql - - -@pytest.mark.parametrize('s', ['select foo; // comment\n', - 'select foo; // comment\r', - 'select foo; // comment\r\n', - 'select foo; // comment']) -def test_split_slashcomments_eol(s): - stmts = sqlparse.parse(s) - assert len(stmts) == 1 - - def test_split_begintag(load_file): sql = load_file('begintag.sql') stmts = sqlparse.parse(sql) |
