()
| 454 | |
| 455 | |
| 456 | def test_identifier_consumes_ordering(): |
| 457 | # issue89 |
| 458 | p = sqlparse.parse('select * from foo order by c1 desc, c2, c3')[0] |
| 459 | assert isinstance(p.tokens[-1], sql.IdentifierList) |
| 460 | ids = list(p.tokens[-1].get_identifiers()) |
| 461 | assert len(ids) == 3 |
| 462 | assert ids[0].get_name() == 'c1' |
| 463 | assert ids[0].get_ordering() == 'DESC' |
| 464 | assert ids[1].get_name() == 'c2' |
| 465 | assert ids[1].get_ordering() is None |
| 466 | |
| 467 | |
| 468 | def test_comparison_with_keywords(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…