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

Method test_keywords

tests/test_format.py:402–410  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

400 assert f(s) == 'select foo; -- test\n\nselect bar'
401
402 def test_keywords(self):
403 f = lambda sql: sqlparse.format(sql, reindent=True)
404 s = 'select * from foo union select * from bar;'
405 assert f(s) == '\n'.join([
406 'select *',
407 'from foo',
408 'union',
409 'select *',
410 'from bar;'])
411
412 def test_keywords_between(self):
413 # issue 14

Callers

nothing calls this directly

Calls 1

fFunction · 0.85

Tested by

no test coverage detected