summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
| * Rename token_idx_ funcs to simply token_ funcsVictor Uriarte2016-06-151-2/+2
| |
| * Change token_ funcs to token_idx funcsVictor Uriarte2016-06-151-3/+3
| |
| * Change argument order to match order of all other functionsVictor Uriarte2016-06-141-7/+5
| |
| * Reapply fix for case within paranthesisVictor Uriarte2016-06-141-8/+0
| |
| * Merge remote-tracking branch 'core/long_live_indexes' into developVictor Uriarte2016-06-142-4/+6
| |\
* | | Add test_cli.pyVictor Uriarte2016-06-151-0/+42
|/ / | | | | | | | | | | | | References: http://stackoverflow.com/questions/18160078/how-do-you-write-tests-for-the-argparse-portion-of-a-python-module http://dustinrcollins.com/testing-python-command-line-apps https://github.com/mdklatt/cookiecutter-python-app
* | Fix token-parent behaviorVictor Uriarte2016-06-121-0/+8
| | | | | | | | Closes issue #226
* | Refactor raw conversion on split_unquoted_newlinesVictor Uriarte2016-06-121-3/+3
| |
* | Remove token_first; its redundant to token_next(idx=0)Victor Uriarte2016-06-122-4/+4
| |
* | Restyle pprint_tree and align upto idx=99Victor Uriarte2016-06-121-13/+58
| |
* | Add sql.Operation tokenlistVictor Uriarte2016-06-121-8/+9
| |
* | Fix grouping of `case` within parenthesis.Victor Uriarte2016-06-111-0/+7
| | | | | | | | Closes #164
* | Test for wildcards vs multiplication tokensVictor Uriarte2016-06-111-0/+11
| |
* | Add test for issue #207 - run-away indent on aliasVictor Uriarte2016-06-111-0/+11
| |
* | Redo unicode-encoding on lexer.pyVictor Uriarte2016-06-111-0/+5
| |
* | 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
* | Improve test by splitting multiple assertsVictor Uriarte2016-06-111-10/+10
| |
* | Add pprint_testVictor Uriarte2016-06-111-1/+20
| |
* | Fix get_token_at_offset behavior at edgeVictor Uriarte2016-06-111-0/+12
| | | | | | | | | | At position 6 (with an index starting at 0) it should have been on 2nd word for the example sql='select * from dual'
* | Apply new-style str formatVictor Uriarte2016-06-113-12/+8
| |
* | Format `pr` to pass flake8 and update functions usedVictor Uriarte2016-06-062-19/+27
| |
* | Add filter `Spaces around Operators`Adam Greenhall2016-06-062-0/+38
| |
* | Test: Subquery Ident-lists grouping alias bugAdam Greenhall2016-06-061-0/+10
| | | | | | | | Not being grouped correctly when aliased
* | 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
| |
* | Allow tokenlists to skip over commentsVictor Uriarte2016-06-041-1/+1
| | | | | | | | Rename ignore_cm to skip_cm for consistency
* | Remove undocumented featuresVictor Uriarte2016-06-043-308/+0
| | | | | | | | | | | | These features/function/classes were added for AntiORM. Quick look-up didn't show any usage outside of AntiORM. Closes #246
* | Refactor tests\utils.pyVictor Uriarte2016-06-041-16/+11
| | | | | | | | | | `io.open(...)` is preferred method over `codecs.open(...)` removed unused or single use variables
* | Update test to current lexer functionsVictor Uriarte2016-06-041-9/+4
| |
* | Fix test that wasn't evaluatingVictor Uriarte2016-06-041-3/+3
| | | | | | | | | | | | | | AssertTrue wasn't comparing the value, just checking if value was not False Fix and changed AssertTrue to Assert_ to match style used else throught tests
* | Merge pull request #248 from fimmtiu/add-wrap-after-optionAndi Albrecht2016-06-031-0/+12
|\ \ | | | | | | Add --wrap_after option for wrapping identifier lists.