MCPcopy Create free account
hub / github.com/dbcli/mycli / test_query_starts_with

Function test_query_starts_with

test/pytests/test_sql_utils.py:163–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161
162
163def test_query_starts_with():
164 query = 'USE test;'
165 assert query_starts_with(query, ('use',)) is True
166
167 query = 'DROP DATABASE test;'
168 assert query_starts_with(query, ('use',)) is False
169
170
171def test_query_starts_with_comment():

Callers

nothing calls this directly

Calls 1

query_starts_withFunction · 0.90

Tested by

no test coverage detected