summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * Use wrap to fix names of decorated test methodsDaniele Varrazzo2013-03-204-23/+41
| | | | | | | | | | | | | | Decorators not using wrap() prevent running the test from command line, e.g. with: python tests/__init__.py test_module.TestSuite.test_method
| * Fixed broken test decorator preventing 3 tests to runDaniele Varrazzo2013-03-201-0/+2
| |
* | Avoid encoding strdup in qstring adapterDaniele Varrazzo2013-04-051-0/+16
| | | | | | | | | | | | Dropped encoding parameter in the constructor: it is used nowhere and not documented. Use directly the connection encoding if available, else the previous latin1 fallback.
* | Use wrap to fix names of decorated test methodsDaniele Varrazzo2013-03-204-24/+42
| | | | | | | | | | | | | | Decorators not using wrap() prevent running the test from command line, e.g. with: python tests/__init__.py test_module.TestSuite.test_method
* | Fixed broken test decorator preventing 3 tests to runDaniele Varrazzo2013-03-201-4/+6
|/
* Merge branch 'diagnostics' into develDaniele Varrazzo2013-03-201-0/+32
|\
| * Added tests to verify the new Diagnostics propertiesDaniele Varrazzo2013-03-201-0/+32
| | | | | | | | | | | | | | diag can be used on exceptions raised without cursor and is independent from the cursor. Docs updated to reflect the changes.
* | Tests tweaked to run on all the supported versionsDaniele Varrazzo2013-03-183-14/+15
| |
* | Merge branch 'diagnostics' into develDaniele Varrazzo2013-03-181-1/+86
|\ \ | |/
| * Added test to verify Diagnostics works after copy errorsDaniele Varrazzo2013-03-181-0/+11
| |
| * Added test to verify Diagnostics reference disposalDaniele Varrazzo2013-03-181-0/+25
| |
| * Added all supported properties to the Diagnostic objectDaniele Varrazzo2013-03-171-1/+31
| |
| * Work-in-progress support for retrieving PG_DIAG result error fields.Matthew Woodcraft2013-03-171-1/+20
| |
* | Fixed exception handling in disconnection testDaniele Varrazzo2013-03-161-3/+5
| | | | | | | | OperationalError is DatabaseError's subclass.
* | Fixed Decimal range testsDaniele Varrazzo2013-03-161-2/+2
| |
* | Fixed handling of database disconnection in tests in green modeDaniele Varrazzo2013-03-161-0/+3
| |
* | Properly cleanup memory of broken connectionsDaniele Varrazzo2013-03-162-1/+33
| | | | | | | | Fixed ticket #148.
* | Fix tests for Postgres 9.3Catalin Iacob2013-03-162-0/+9
|/ | | | | | | Postgres 9.3 turns messages about implicit indexes and sequences from NOTICE to DEBUG1 so the tests fail with a default 9.3 server configuration because the client doesn't get any NOTICE. Fix it by also asking for DEBUG1 messages from the server when testing against Postgres >= 9.3.
* Merge branch 'py33' into develDaniele Varrazzo2012-12-221-2/+2
|\
| * Return memoryview object of type "c" instead of "B" from byteaDaniele Varrazzo2012-09-211-2/+2
| | | | | | | | | | | | | | | | In Python 3.3 items are returned as int instead of chars. I'm not sure the way I did it is correct: worth asking some hardcore Python dev. Fixed tests after the stricter memview comparison rules in Py 3.3.
* | Fixed pickling of DictRow objects tooDaniele Varrazzo2012-12-111-0/+14
| |
* | Fixed pickling of RealDictRow objectsDaniele Varrazzo2012-12-101-0/+12
| |
* | Merge branch 'contextmanager' into develDaniele Varrazzo2012-12-042-0/+219
|\ \
| * | Make sure to call subclasses methods on context exitDaniele Varrazzo2012-12-031-0/+55
| | |
| * | Added support for with statement for connection and cursorDaniele Varrazzo2012-12-032-0/+164
| | | | | | | | | | | | | | | The implementation should be conform to the DBAPI, although the "with" extension has not been released yet.
* | | Fixed empty strings handling in composite casterDaniele Varrazzo2012-12-031-0/+21
|/ / | | | | | | Closes ticket #141.
* | Fixed pickling of FixedOffsetTimezone objectsDaniele Varrazzo2012-10-211-0/+18
| | | | | | | | | | | | | | I have also verified that the fixed class can unpickle instance pickled with the buggy one and viceversa. Fixes ticket #135.
* | Close the connection on error in callbackDaniele Varrazzo2012-10-061-3/+16
| | | | | | | | | | | | | | Unfortunately PQcancel blocks, so it's not better than PQgetResult. It has been suggested to use PQreset in non-blocking way but this would give the Python program the burden of handling a connection done but not configured in an unexpected place.
* | Merge branch 'range-type' into develDaniele Varrazzo2012-09-271-1/+492
|\ \
| * | Fixed search of types into schemas.Daniele Varrazzo2012-09-241-0/+27
| | | | | | | | | | | | | | | | | | We don't need to look for stuff implicitly into pg_catalog as all the builtin ranges are already registered. So just search into 'public' if the schema is not specified.
| * | Added test for range not foundDaniele Varrazzo2012-09-241-0/+6
| | |
| * | Added containment tests for unbounded intervalsDaniele Varrazzo2012-09-231-0/+23
| | |
| * | Range objects cannot be orderedDaniele Varrazzo2012-09-231-0/+7
| | |
| * | Range objects are nonzero when not emptyDaniele Varrazzo2012-09-231-0/+6
| | |
| * | Range objects are immutable and hashableDaniele Varrazzo2012-09-231-0/+21
| | |
| * | Added in operator for rangesDaniele Varrazzo2012-09-231-0/+29
| | |
| * | NumberRange renamed to NumericRangeDaniele Varrazzo2012-09-231-17/+17
| | | | | | | | | | | | | | | | | | I was avoiding Numeric to avoid conflicting with the 'numeric' Postgres type, which is an alias for 'decimal'. But now that there is a single numeric range I can use the preferred name
| * | Dropped Range classes for specific numeric typesDaniele Varrazzo2012-09-231-7/+7
| | |
| * | Added first implementation of Range type, adapter, typecasterDaniele Varrazzo2012-09-231-5/+374
| |/
* | Merge branch 'json' into develDaniele Varrazzo2012-09-271-4/+248
|\ \
| * | Don't create/register a json array typecaster if no oid providedDaniele Varrazzo2012-09-241-0/+12
| | |
| * | Fixed json typecaster with NULL inputDaniele Varrazzo2012-09-201-0/+10
| | |
| * | Dropped keywords passthrough in Json adapterDaniele Varrazzo2012-09-191-7/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | Pass a dumps function instead. Allow customizing by either arg passing or subclassing. The basic Json class now raises ImportError on getquoted() if json is not available, thus allowing using a customized Json subclass even when the json module is not available.
| * | Added register_default_json() functionDaniele Varrazzo2012-09-191-0/+18
| | | | | | | | | | | | Register a typecaster for PostgreSQL 9.2 json.
| * | First parameter of register_json defaults to NoneDaniele Varrazzo2012-09-191-1/+1
| | |
| * | Added json typecasterDaniele Varrazzo2012-09-191-0/+92
| | |
| * | Added Json adapterDaniele Varrazzo2012-09-191-4/+79
| | |
* | | Merge branch 'composite-custom' into develDaniele Varrazzo2012-09-271-1/+28
|\ \ \
| * | | Added schema attribute to CompositeCasterDaniele Varrazzo2012-09-221-0/+2
| | | |
| * | | Make CompositeCaster easier to subclassDaniele Varrazzo2012-09-221-1/+26
| | |/ | |/|