summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix typostypoVictor Uriarte2017-11-294-6/+6
|
* Merge pull request #364 from jdufresne/flake8Andi Albrecht2017-11-211-2/+2
|\ | | | | Fix flake8 warning with newer flake8 version
| * Fix flake8 warning with newer flake8 versionJon Dufresne2017-10-281-2/+2
| | | | | | | | | | Report "ambiguous variable name 'l'", replace with a more descriptive name.
* | Fix unclosed file warnings discovered during testsJon Dufresne2017-10-281-3/+4
|/ | | | | | | | Appear as: ResourceWarning: unclosed file ... Always explicitly close files or detach file wrappers.
* Close files during tests.Andi Albrecht2017-09-242-10/+11
|
* Fix handling of semicolon when grouping assignments (fixes #359).Andi Albrecht2017-09-241-0/+10
| | | | | | When grouping assignments that contain a semicolon itself, the engine was too greedy. Assignments with semicolon were introduced in 691c0400e5a7d8229b7dce09bf47176539add328.
* Merge branch 'master' into masterAndi Albrecht2017-09-212-2/+14
|\
| * Fix parsing of UNION ALL after WHERE (fixes #349).Andi Albrecht2017-07-291-0/+9
| |
| * Recognize MySQL table names starting with digits (fixes #337).Andi Albrecht2017-05-251-2/+5
| |
* | adds '1.' option support for float numbers regexatronah2017-04-301-0/+14
|/
* Re-order parsing so that comparisons are seens as identifiers (fixes #327).Andi Albrecht2017-04-181-0/+14
|
* Fix parsing of INTO keyword in WHERE clauses (fixes #324).Andi Albrecht2017-03-021-0/+8
|
* Fix line lengthRowan Seymour2017-02-091-1/+2
|
* CONCURRENTLY should be handled as a keywordRowan Seymour2017-02-091-0/+12
|
* Update test with new behaviorVictor Uriarte2017-02-071-2/+3
|
* Add another CLI encoding testVictor Uriarte2017-01-221-0/+8
| | | | This one I couldn't get to pass on my attempt
* CLI: Add --encoding optionTao Wang2017-01-123-0/+66
| | | | | | | | * Add `--encoding` option with default utf-8 * Make sure input and output are in same encoding * Add test cases Signed-off-by: Tao Wang <twang2218@gmail.com>
* Fix #315 support utf-8 by defaultTao Wang2017-01-111-0/+19
| | | | Signed-off-by: Tao Wang <twang2218@gmail.com>
* Fix an edge-case with subselects in CASE clauses.Andi Albrecht2016-10-241-0/+10
|
* Fix special case for #284 when statement starts with orphaned AS.Andi Albrecht2016-10-241-4/+7
|
* Handle operator grouping after identifying typecasts (fixes #297).Andi Albrecht2016-10-011-0/+14
|
* Parametrize test.Andi Albrecht2016-10-011-10/+9
|
* Fix parsing of UNION ALL (fixes #294).Andi Albrecht2016-09-261-0/+6
|
* 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
|
* Fix parsing of names containing special chars (fixes 291).Andi Albrecht2016-09-141-0/+14
|
* Decode bytes to unicode in Lexer.get_tokens().Oleg Broytman2016-08-311-1/+19
| | | | | | | Raise TypeError if the input is neither bytes in a known encoding nor unicode nor a file-like object (file, StringIO). Remove function u(). Add bytes_type to compat. Add tests for non-ascii.
* Merge pull request #285 from vmuriart/unify_naming_schemaAndi Albrecht2016-08-241-1/+1
|\ | | | | Unify_naming_schema. Closes #283
| * Unify_naming_schema. Closes #283Victor Uriarte2016-08-221-1/+1
| |
* | Fix #284 as groupingVictor Uriarte2016-08-221-0/+6
| |
* | Fix test that wasn't runningVictor Uriarte2016-08-221-1/+1
|/
* Parse double dollars (PostgreSQL) as literal strings (fixes #277).Andi Albrecht2016-08-133-1/+33
|
* Don't rely on line breaks in tests.Andi Albrecht2016-08-132-2/+2
|
* Merge pull request #279 from phdru/issue-190Vik2016-08-051-0/+7
|\ | | | | closes #190
| * Fix a bug: recognize file (Python 2) as a streamOleg Broytman2016-08-061-0/+7
| |
* | Avoid double apostrophesOleg Broytman2016-08-061-0/+6
|/ | | | | | | | If the value is Single it's already quoted with apostrophes. Avoid double apostrophes it that case by using double-quotes instead. For example, if the value is 'value' the output is "'value'" instead of ''value''.
* Failing test: stream worked in 0.1.19Gordon McCreight2016-07-213-0/+16
|
* Returning clause ends where clauseDarik Gamble2016-06-251-0/+8
|
* Format cli.py and add cli-testsVictor Uriarte2016-06-201-0/+37
|
* Split test/asserts that are weakly relatedVictor Uriarte2016-06-201-8/+22
|
* Parametrize testsVictor Uriarte2016-06-205-153/+70
| | | | | | Allows for tests to continue if the first assert had failed. In particular useful when certain change is dealing with two almost opposing edge cases.
* Remove some test classes and clean-upVictor Uriarte2016-06-206-1024/+1102
|
* Replace tests/utils with conftest.pyVictor Uriarte2016-06-205-35/+55
| | | | http://stackoverflow.com/questions/34466027/what-is-the-use-of-conftest-py
* Replace other UnitTest with Py.TestVictor Uriarte2016-06-208-462/+441
|
* Replace ndiffAssertEqual with Py.TestVictor Uriarte2016-06-206-314/+277
|
* Merge pull request #265 from darikg/dont-ignore-skip_cmVictor Uriarte2016-06-201-0/+6
|\
| * token_next shouldn't ignore skip_cmDarik Gamble2016-06-201-0/+6
|/
* Previous fix for period failed when another token (non-groupable) followed.Victor Uriarte2016-06-191-0/+9
|
* Revert behavior of dangling period(hanging schema qualifier)Victor Uriarte2016-06-181-3/+3
| | | | | | Related to #261. Reverting to previous behavior until a way to handle behavior/grouping of invalid sql is agreed upon.
* Merge pull request #260 from vmuriart/long_live_indexesVik2016-06-163-21/+13
|\ | | | | Long live indexes - Improve performance