()
| 650 | |
| 651 | |
| 652 | def test_aliased_function_without_as(): |
| 653 | p = sqlparse.parse('foo() bar')[0].tokens[0] |
| 654 | assert p.get_parent_name() is None |
| 655 | assert p.get_real_name() == 'foo' |
| 656 | assert p.get_alias() == 'bar' |
| 657 | |
| 658 | p = sqlparse.parse('foo.bar() baz')[0].tokens[0] |
| 659 | assert p.get_parent_name() == 'foo' |
| 660 | assert p.get_real_name() == 'bar' |
| 661 | assert p.get_alias() == 'baz' |
| 662 | |
| 663 | |
| 664 | def test_aliased_literal_without_as(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…