This is an automated email from the ASF dual-hosted git repository.

beto pushed a commit to branch fix_is_select
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/fix_is_select by this push:
     new fc8b3e48f4 Add test
fc8b3e48f4 is described below

commit fc8b3e48f4082018cccd67a381ce6e8ce2ed7464
Author: Beto Dealmeida <[email protected]>
AuthorDate: Tue Sep 5 11:07:47 2023 -0700

    Add test
---
 tests/unit_tests/sql_parse_tests.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/unit_tests/sql_parse_tests.py 
b/tests/unit_tests/sql_parse_tests.py
index 7d8839198c..73074d3df6 100644
--- a/tests/unit_tests/sql_parse_tests.py
+++ b/tests/unit_tests/sql_parse_tests.py
@@ -1616,3 +1616,10 @@ def test_extract_table_references(mocker: MockerFixture) 
-> None:
         Table(table="other_table", schema=None, catalog=None)
     }
     logger.warning.assert_not_called()
+
+
+def test_is_select() -> None:
+    """
+    Test `is_select`.
+    """
+    assert not ParsedQuery("SELECT 1; DROP DATABASE superset").is_select()

Reply via email to