MCPcopy Index your code
hub / github.com/andialbrecht/sqlparse / test_parse_div_operator

Function test_parse_div_operator

tests/test_parse.py:141–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139
140
141def test_parse_div_operator():
142 p = sqlparse.parse('col1 DIV 5 AS div_col1')[0].tokens
143 assert p[0].tokens[0].tokens[2].ttype is T.Operator
144 assert p[0].get_alias() == 'div_col1'
145
146
147def test_quoted_identifier():

Callers

nothing calls this directly

Calls 1

get_aliasMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…