summaryrefslogtreecommitdiff
path: root/tests/test_format.py
Commit message (Collapse)AuthorAgeFilesLines
* [filters] Stripping parenthesis whitespaceJohn Bodley2019-03-101-3/+3
|
* Fix formatting on INSERT (fixes #329)Fredy Wijaya2019-03-101-0/+43
| | | | | | | | | | | | | | | | | | | | This patch fixes the formatting on INSERT by creating a new instance of sql.Values to group all the values. SQL: insert into foo values (1, 'foo'), (2, 'bar'), (3, 'baz') Before: insert into foo values (1, 'foo'), (2, 'bar'), (3, 'baz') After: insert into foo values (1, 'foo'), (2, 'bar'), (3, 'baz')
* Merge branch 'issue_425' of https://github.com/fredyw/sqlparse into ↵Andreas Albrecht2019-03-101-0/+13
|\ | | | | | | fredyw-issue_425
| * Fix issue with strip_comments causing a syntax error (fixes #425)Fredy Wijaya2018-11-211-0/+13
| |
* | Code cleanup.Andreas Albrecht2019-03-101-2/+2
| |
* | Fix reindent issue for parenthesis (fixes issue 427)Fredy Wijaya2018-12-031-0/+5
|/
* Deal with long function paramsSoloman Weng2018-03-261-0/+12
|
* Better formatting when using comma-first notation (issue141).Andi Albrecht2016-09-171-4/+4
|
* Add formatter option for comma first notation (fixes #141).Andi Albrecht2016-09-141-0/+15
|
* Split test/asserts that are weakly relatedVictor Uriarte2016-06-201-8/+22
|
* Remove some test classes and clean-upVictor Uriarte2016-06-201-159/+173
|
* Replace other UnitTest with Py.TestVictor Uriarte2016-06-201-46/+48
|
* Replace ndiffAssertEqual with Py.TestVictor Uriarte2016-06-201-250/+222
|
* Add multi-statement output testsVictor Uriarte2016-06-111-0/+16
|
* Add right marging and options testsVictor Uriarte2016-06-111-0/+14
| | | | | | | Make pytest alert of any passing tests marked to fail Idea is to include tests for un-fixed bugs. If they are passing we want to know
* Format `pr` to pass flake8 and update functions usedVictor Uriarte2016-06-061-14/+20
|
* Add filter `Spaces around Operators`Adam Greenhall2016-06-061-0/+34
|
* Fix Case statements AlignmentAdam Greenhall2016-06-061-0/+30
|
* Fix/Test JoinsAdam Greenhall2016-06-061-0/+26
|
* Fix/Test Limit statementsAdam Greenhall2016-06-061-0/+2
|
* Test: Window functionsAdam Greenhall2016-06-061-0/+16
|
* Fix/Test `Group-By`Adam Greenhall2016-06-061-0/+54
|
* Test: Case statementsaneeshk2016-06-061-0/+28
|
* Start work on Aligned-reindentAdam Greenhall2016-06-061-0/+32
|
* Add --wrap_after option for wrapping identifier lists.Dennis Taylor2016-06-021-0/+12
|
* Code cleanup in tests.Andi Albrecht2015-10-261-3/+6
|
* Fix of problem with multiline treated as stackable while /* /* */ is one ↵JacekPliszka2015-02-121-0/+3
| | | | comment, not two stacked
* Improve formatting of HAVING statements.Andi Albrecht2014-12-211-0/+15
|
* Fix SerializerUnicode to split unquoted newlinesMichael Schuller2014-03-101-0/+17
| | | | | | | This provides a fix to issue #131. The `split_unquoted_newlines()` function added to the utils module handles the splitting of the string by performing a simple iteration of the string passed in and splitting on unquoted CR, LF, or CR+LFs as they are found.
* Add option to truncate long string literals.Andi Albrecht2013-07-091-0/+26
|
* Fixed lack of a new line before function in test_format.py.Yago Riveiro2013-04-261-0/+1
|
* Added test to STRAIGHT_JOIN token.Yago Riveiro2013-04-261-1/+5
|
* Add order criterion to identifier in ORDER BY clause (fixes #89).Andi Albrecht2013-04-051-0/+11
|
* PEP8'ified to code a bit.Andi Albrecht2012-11-121-1/+1
|
* Move SQLParseError to proper location and start deprecation of ↵Andi Albrecht2012-11-031-9/+10
| | | | sqlparse.SQLParseError.
* Put common code from Python and PHP output filters in OutputFilterJesús Leganés Combarro "Piranna"2012-04-281-2/+2
|
* Preserve whitespace after subgroups.Andi Albrecht2012-04-191-0/+6
|
* Choose first token during identifier grouping when both names/symbols and ↵Andi Albrecht2011-09-271-1/+6
| | | | functions are found (fixes issue45).
* Releax keyword detection, when keywords are used as function names (fixes ↵Andi Albrecht2011-07-241-0/+7
| | | | issue36).
* Fix formatting issue with extended CASE statements.Andi Albrecht2011-02-281-0/+8
|
* Ignore identifiers in double-quotes when changing identifier case (fixes ↵Andi Albrecht2010-11-211-1/+1
| | | | issue21).
* Ignore AND after BETWEEN when reindenting statements (fixes issue14).Andi Albrecht2010-11-211-0/+8
|
* Fix test case for CASE reindent.Andreas Albrecht2010-01-111-3/+4
|
* Add formatting test case for complex identifier lists.Andi Albrecht2009-07-121-0/+10
|
* * Python and PHP output filter now add a trailing whitespace.Andi Albrecht2009-05-061-0/+45
| | | | * More test coverage.
* Improved check for duplicated newlines (targets issue3).Andi Albrecht2009-05-051-0/+5
|
* Added unittest for issue3.Andi Albrecht2009-05-051-2/+15
|
* Handle wildcards in identifiers.Andi Albrecht2009-04-241-0/+5
|
* Analyse AS recursive (fixes issue4).Andi Albrecht2009-04-211-0/+9
|
* Initial import.Andi Albrecht2009-04-031-0/+146