summaryrefslogtreecommitdiff
path: root/tests/test_split.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix splitting of statements using CASE ... WHEN (fixes #580).Andi Albrecht2020-09-301-0/+6
|
* Fix splitting when using DECLARE ... HANDLER (fixes #581).Andi Albrecht2020-09-301-0/+6
|
* Don't flush token streams iff they only contain whitespace tokens (fixes #496).Andi Albrecht2020-09-131-0/+7
|
* Remove support for end-of-life PythonsJon Dufresne2020-08-311-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python 2.7 and 3.4 are end-of-life. They are no longer receiving bug fixes, including for security issues. Python 2.7 went EOL on 2020-01-01 and 3.4 on 2019-03-18. For additional details on support Python versions, see: Supported: https://devguide.python.org/#status-of-python-branches EOL: https://devguide.python.org/devcycle/#end-of-life-branches Removing support for EOL Pythons will reduce testing and maintenance resources while allowing the library to move towards modern Python 3. Using pypinfo, we can show the PyPI download statistics, showing less than 10% of users are using Python 2.7. | python_version | percent | download_count | | -------------- | ------: | -------------: | | 3.7 | 45.36% | 3,056,010 | | 3.6 | 26.46% | 1,782,778 | | 3.8 | 12.22% | 823,213 | | 2.7 | 9.97% | 671,459 | | 3.5 | 5.86% | 394,846 | | 3.4 | 0.10% | 6,700 | | 3.9 | 0.03% | 2,346 | | 2.6 | 0.00% | 57 | | 3.3 | 0.00% | 21 | | 3.10 | 0.00% | 6 | | Total | | 6,737,436 | Library users who continue to use Python 2.7 will still be able to install previous versions of sqlparse. Compatibility shims have been dropped, simplifying the code. Using pyupgrade, the codebase has been updated to take advantage of modern syntax <https://github.com/asottile/pyupgrade>. The wheel is no longer marked as "universal" as it is now Python 3 only.
* Revert "Add in slash comment functionality"Toby Mao2019-06-261-16/+0
| | | | This reverts commit 170010e7d709f2145169d23482d006dc56856256.
* Add in slash comment functionalityIan Robertson2019-03-101-0/+16
|
* Fix incorrect splitting with double quotes and a new lineFredy Wijaya2018-03-091-0/+10
|
* Parse double dollars (PostgreSQL) as literal strings (fixes #277).Andi Albrecht2016-08-131-1/+2
|
* Parametrize testsVictor Uriarte2016-06-201-32/+13
| | | | | | 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-201-127/+140
|
* Replace tests/utils with conftest.pyVictor Uriarte2016-06-201-8/+7
| | | | http://stackoverflow.com/questions/34466027/what-is-the-use-of-conftest-py
* Replace other UnitTest with Py.TestVictor Uriarte2016-06-201-40/+40
|
* Replace ndiffAssertEqual with Py.TestVictor Uriarte2016-06-201-14/+15
|
* Redo unicode-encoding on lexer.pyVictor Uriarte2016-06-111-0/+5
|
* Use compat module for single Python 2/3 code base.Andi Albrecht2015-10-261-19/+16
| | | | This change includes minor fixes and code cleanup too.
* Recognize escaped backslashes within stringscasey2015-02-261-0/+4
| | | | | Previously if a single quoted string ended with an escaped backslash, parsing would not consider the string to be terminated.
* Strip leading and trailing whitespaces from splitted statements.Andi Albrecht2013-05-151-0/+7
|
* PEP8'ified to code a bit.Andi Albrecht2012-11-121-1/+2
|
* splitstream -> parsestreamquest2012-04-211-3/+3
|
* Always use a stream internally; makes things more readable.quest2012-04-211-1/+0
|
* We can now work with file-like objects.quest2012-04-211-0/+15
|
* Added test for Issue 57Jesús Leganés Combarro "Piranna"2012-01-231-0/+6
|
* Split statements with IF as functions correctly (fixes issue33).Andi Albrecht2011-07-241-0/+7
|
* Match single line comments at end of string.Andi Albrecht2010-11-141-0/+10
| | | | The bug was reported for CrunchyFrog: http://code.google.com/p/crunchyfrog/issues/detail?id=88
* Improve statement detection for DECLARE statements outside ↵Andi Albrecht2010-06-231-0/+7
| | | | | | | | function/procedure definitions. The parser didn't recognized DECLARE statements outside function/procedure definitions correctly and assumed that a non-separating semicolon follows.
* Turn relative import in tests module to absolute imports.Andi Albrecht2009-04-301-1/+1
|
* Initial import.Andi Albrecht2009-04-031-0/+88