MCPcopy
hub / github.com/andialbrecht/sqlparse / test_quoted_identifier

Function test_quoted_identifier

tests/test_parse.py:147–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145
146
147def test_quoted_identifier():
148 t = sqlparse.parse('select x.y as "z" from foo')[0].tokens
149 assert isinstance(t[2], sql.Identifier)
150 assert t[2].get_name() == 'z'
151 assert t[2].get_real_name() == 'y'
152
153
154@pytest.mark.parametrize('name', [

Callers

nothing calls this directly

Calls 2

get_nameMethod · 0.80
get_real_nameMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…