summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Test decorator moved into the test utilities moduleDaniele Varrazzo2011-01-093-26/+29
| | | | |
* | | | | Added license to unit testsDaniele Varrazzo2011-01-0916-3/+361
| | | | | | | | | | | | | | | | | | | | As the test suite is now part of the source distribution.
* | | | | All tests made executable.Daniele Varrazzo2011-01-079-0/+0
| |_|_|/ |/| | |
* | | | Broken circular reference in async executionDaniele Varrazzo2011-01-031-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | If a connection is destroyed before an async operation is completed, the `async_cursor` member creates a reference loop, leaving the connection and the cursor alive. `async_cursor` is now a weak reference.
* | | | The cursor is weakly referenceableDaniele Varrazzo2011-01-031-0/+7
| | | |
* | | | The connection is weakly referenceableDaniele Varrazzo2011-01-031-0/+8
| | | |
* | | | Don't register the unicode typecaster globally during testsDaniele Varrazzo2011-01-031-1/+1
| | | | | | | | | | | | | | | | It can invalidate the results in further runs in the same process.
* | | | Unregister test adapters to keep a more precise references countDaniele Varrazzo2011-01-031-2/+10
| |_|/ |/| |
* | | Added missing test to the test suite.Daniele Varrazzo2011-01-021-0/+2
| | |
* | | Added PostgreSQL composite types typecaster to Python tuples.Daniele Varrazzo2011-01-021-0/+154
| | |
* | | Added cursor.cast() methodDaniele Varrazzo2011-01-011-0/+32
| |/ |/| | | | | | | The method exposes the typecasters lookup algorithm. Useful to create recursive typecasters.
* | Fixed adaptation of None in composite types (ticket #26).Daniele Varrazzo2011-01-011-0/+20
| | | | | | | | | | | | | | Added an adapter for None: it is usually not invoked as adaptation to NULL is a fast path in mogrify, but can be invoked by composite types. Notice that composite types still have the option to fast-path None (e.g. list adapter does).
* | Added test to show failed adaptation of None in records.Daniele Varrazzo2010-12-311-0/+16
| |
* | Shorter "never ending query" to test query canceling.Daniele Varrazzo2010-12-041-1/+1
|/ | | | | If the cancel signal misses the race, this query will stay in the backend until the sleep expires.
* Bail out early from tests if connection to the test db fails.Daniele Varrazzo2010-12-011-0/+12
|
* DictRow items can be updated. Patch by Alex Aster.Daniele Varrazzo2010-12-011-0/+7
|
* More careful connections handling during tests.Daniele Varrazzo2010-11-287-41/+81
|
* Deal uniformly with test servers without pg_sleep.Daniele Varrazzo2010-11-285-19/+43
|
* Added paranoia test to check we haven't broken gil release.Daniele Varrazzo2010-11-281-0/+20
| | | | | Got scared testing cancel with a signal as it doesn't work. But probably signals are not deliveded to Python in the middle of an opcode.
* A prepared connection can't be canceled.Daniele Varrazzo2010-11-281-0/+6
|
* Support query cancellation.Jan UrbaƄski2010-11-282-0/+91
| | | | | Add a cancel() method do the connection object that will interrupt the current query using the libpq PQcancel() function.
* Don't consider the kernel not blocking us on write as an error.Daniele Varrazzo2010-11-252-2/+12
|
* Skip test if uuid not available on Python.Daniele Varrazzo2010-11-241-1/+6
|
* Skipped inf test on the platform not supporting it (win32).Daniele Varrazzo2010-11-241-0/+2
|
* Fixed import of test functions from Python 2.7 unittest.Daniele Varrazzo2010-11-191-1/+2
|
* Add a small delay to receive notification when testing on busy network.Daniele Varrazzo2010-11-191-0/+3
|
* Float test skipped where the server doesn't support inf.Daniele Varrazzo2010-11-191-1/+8
|
* hstore test passes against non-utf8 databases.Daniele Varrazzo2010-11-191-6/+16
|
* Test cleanup.Daniele Varrazzo2010-11-1913-122/+222
| | | | | | Tests pass or fail gracefully on older PostgreSQL versions. If unittest2 is available, skip tests instead of printing warnings.
* Added enum with possilbe isolation level states.Daniele Varrazzo2010-11-181-13/+88
| | | | Also, general isolation levels cleanup and tests added.
* Added tests to check the effective isolation level.Daniele Varrazzo2010-11-171-0/+68
|
* Fixed notices order (ticket #9).Daniele Varrazzo2010-11-111-0/+26
|
* NamedTupleCursor doesn't change exception when fetching with no result.Daniele Varrazzo2010-11-111-0/+9
|
* Build the namedtuple only once per execution, not once per fetch.Daniele Varrazzo2010-11-111-0/+45
|
* Fixed tests to run on Windows.Daniele Varrazzo2010-11-112-1/+9
|
* Silencing other 2 tests failures due to 2pc disabled in the server.Daniele Varrazzo2010-11-091-0/+8
|
* Fixed test syntax for py 2.4.Daniele Varrazzo2010-11-091-2/+1
|
* Use the adapter of an object superclass if available.Daniele Varrazzo2010-11-081-0/+29
|
* Tests fail gracefully if tpc is supported but disabled by the server.Daniele Varrazzo2010-11-081-0/+36
|
* Added NamedTupleCursor.Daniele Varrazzo2010-11-061-0/+103
|
* Added test to verify the ticket #7 is fixed.Daniele Varrazzo2010-11-061-0/+13
|
* The Notify type is hashable.Daniele Varrazzo2010-11-051-0/+5
| | | | | If there is no payload, hash the same way the equivalent 2-tuple does. Otherwise hash on the payload too.
* Payload default is the empty string.Daniele Varrazzo2010-11-051-1/+1
|
* Added comparison between Notify objects and Notify or tuple.Daniele Varrazzo2010-11-051-0/+16
| | | | | | Explicit comparison with the tuple is required if we want to make Notify() == (pid, channel) work: item access is not enough (and a test in the suite fails if we get this wrong).
* Skip tests if the hstore type is not in the test database.Daniele Varrazzo2010-11-051-0/+17
|
* The hstore typecast can be registered globally.Daniele Varrazzo2010-11-051-0/+21
|
* Hstore can return unicode keys and values.Daniele Varrazzo2010-11-051-0/+36
|
* Added test to verify dict roundtrip with hstore.Daniele Varrazzo2010-11-051-0/+24
|
* Correctly parse escaped quotes from hstore.Daniele Varrazzo2010-11-051-0/+1
| | | | Parse regexp simplified.
* Added hstore typecaster registration.Daniele Varrazzo2010-11-051-0/+23
|