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

Function test_token_flatten

tests/test_tokenize.py:82–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80
81
82def test_token_flatten():
83 token = sql.Token(T.Keyword, 'foo')
84 gen = token.flatten()
85 assert isinstance(gen, types.GeneratorType)
86 lgen = list(gen)
87 assert lgen == [token]
88
89
90def test_tokenlist_repr():

Callers

nothing calls this directly

Calls 1

flattenMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…