summaryrefslogtreecommitdiff
path: root/tests/test_sql.py
Commit message (Collapse)AuthorAgeFilesLines
* sql.Identifier can wrap a sequence of strings to represent qualified namesidentifier-sequenceDaniele Varrazzo2018-10-041-6/+22
| | | | Close #732.
* In tests, use compat.py where there is overlapJon Dufresne2017-12-111-2/+3
|
* Avoid installing tests to site-packagesJon Dufresne2017-12-101-2/+2
| | | | | | | | For library end users, there is no need to install tests alongside the package itself. This keeps the tests available for development without adding extra packages to user's site-packages directory. Reduces the size of the installed package. Avoids accidental execution of test code by an installed package.
* Use relative imports throughout testsJon Dufresne2017-12-101-1/+1
| | | | | | | | | | | | | | The tests relied on Python2 relative import semantics. Python3 changed import semantics to always search sys.path by default. To import using a relative path it must have a leading dot. Forward compatible with newer Pythons. Works towards the goal of moving tests outside of the installed package. For more information, see PEP-328: https://www.python.org/dev/peps/pep-0328/
* Merge remote-tracking branch 'jdufresne/import-unittest'Daniele Varrazzo2017-12-021-1/+2
|\
| * Always import the system unittestJon Dufresne2017-12-011-1/+2
| | | | | | | | | | | | | | There is no need to import testutils.unittest instead of simply unittest. They are simple aliases. Use system unittest to be more regular, consistent as well as idiomatic with the wider Python community.
* | Use builtin function next() throughout projectJon Dufresne2017-12-011-3/+3
|/ | | | | | | Available since Python 2.6. Use of .next() is deprecated and not supported in Python 3. Forward compatible with modern Python. https://docs.python.org/2/library/functions.html#next
* Drop support for EOL Python 2.6Hugo2017-11-281-2/+0
|
* Added test to verify sql objects work with copy_expert()Daniele Varrazzo2017-03-161-1/+25
| | | | | | I'll be honest: I lucked out, I didn't think about this combination. But maybe sheer luck, maybe using common code paths, it just works. Let's make it stays so.
* Deal consistently with E'' quotes in testsDaniele Varrazzo2017-02-061-7/+5
|
* Autonumbered args not available in Python 2.6Daniele Varrazzo2017-01-031-12/+17
|
* Several improvements to the sql objectsDaniele Varrazzo2017-01-031-15/+74
| | | | Comparable, iterable, content accessible
* Use {} instead of %s placeholders in SQL compositionDaniele Varrazzo2017-01-031-26/+55
|
* Dropped sql.composeDaniele Varrazzo2017-01-011-21/+20
| | | | Use a SQL % operator instead.
* Adding sql module documentationDaniele Varrazzo2017-01-011-0/+5
|
* Added test for sql percents treatmentDaniele Varrazzo2017-01-011-0/+9
|
* Typo: composible -> composableDaniele Varrazzo2017-01-011-5/+5
|
* Fixed sql.compose with no args and added testsDaniele Varrazzo2017-01-011-0/+15
|
* Fixed sql.Composed representationDaniele Varrazzo2017-01-011-0/+6
|
* Fixed sql stuff in Py3Daniele Varrazzo2017-01-011-2/+0
|
* Added basic sql module implementationDaniele Varrazzo2017-01-011-1/+222
|
* Adding some boilerplate for the new moduleDaniele Varrazzo2017-01-011-0/+32