Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | | | Test decorator moved into the test utilities module | Daniele Varrazzo | 2011-01-09 | 3 | -26/+29 | |
| | | | | | ||||||
* | | | | | Added license to unit tests | Daniele Varrazzo | 2011-01-09 | 16 | -3/+361 | |
| | | | | | | | | | | | | | | | | | | | | As the test suite is now part of the source distribution. | |||||
* | | | | | All tests made executable. | Daniele Varrazzo | 2011-01-07 | 9 | -0/+0 | |
| |_|_|/ |/| | | | ||||||
* | | | | Broken circular reference in async execution | Daniele Varrazzo | 2011-01-03 | 1 | -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 referenceable | Daniele Varrazzo | 2011-01-03 | 1 | -0/+7 | |
| | | | | ||||||
* | | | | The connection is weakly referenceable | Daniele Varrazzo | 2011-01-03 | 1 | -0/+8 | |
| | | | | ||||||
* | | | | Don't register the unicode typecaster globally during tests | Daniele Varrazzo | 2011-01-03 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | It can invalidate the results in further runs in the same process. | |||||
* | | | | Unregister test adapters to keep a more precise references count | Daniele Varrazzo | 2011-01-03 | 1 | -2/+10 | |
| |_|/ |/| | | ||||||
* | | | Added missing test to the test suite. | Daniele Varrazzo | 2011-01-02 | 1 | -0/+2 | |
| | | | ||||||
* | | | Added PostgreSQL composite types typecaster to Python tuples. | Daniele Varrazzo | 2011-01-02 | 1 | -0/+154 | |
| | | | ||||||
* | | | Added cursor.cast() method | Daniele Varrazzo | 2011-01-01 | 1 | -0/+32 | |
| |/ |/| | | | | | | | The method exposes the typecasters lookup algorithm. Useful to create recursive typecasters. | |||||
* | | Fixed adaptation of None in composite types (ticket #26). | Daniele Varrazzo | 2011-01-01 | 1 | -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 Varrazzo | 2010-12-31 | 1 | -0/+16 | |
| | | ||||||
* | | Shorter "never ending query" to test query canceling. | Daniele Varrazzo | 2010-12-04 | 1 | -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 Varrazzo | 2010-12-01 | 1 | -0/+12 | |
| | ||||||
* | DictRow items can be updated. Patch by Alex Aster. | Daniele Varrazzo | 2010-12-01 | 1 | -0/+7 | |
| | ||||||
* | More careful connections handling during tests. | Daniele Varrazzo | 2010-11-28 | 7 | -41/+81 | |
| | ||||||
* | Deal uniformly with test servers without pg_sleep. | Daniele Varrazzo | 2010-11-28 | 5 | -19/+43 | |
| | ||||||
* | Added paranoia test to check we haven't broken gil release. | Daniele Varrazzo | 2010-11-28 | 1 | -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 Varrazzo | 2010-11-28 | 1 | -0/+6 | |
| | ||||||
* | Support query cancellation. | Jan UrbaĆski | 2010-11-28 | 2 | -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 Varrazzo | 2010-11-25 | 2 | -2/+12 | |
| | ||||||
* | Skip test if uuid not available on Python. | Daniele Varrazzo | 2010-11-24 | 1 | -1/+6 | |
| | ||||||
* | Skipped inf test on the platform not supporting it (win32). | Daniele Varrazzo | 2010-11-24 | 1 | -0/+2 | |
| | ||||||
* | Fixed import of test functions from Python 2.7 unittest. | Daniele Varrazzo | 2010-11-19 | 1 | -1/+2 | |
| | ||||||
* | Add a small delay to receive notification when testing on busy network. | Daniele Varrazzo | 2010-11-19 | 1 | -0/+3 | |
| | ||||||
* | Float test skipped where the server doesn't support inf. | Daniele Varrazzo | 2010-11-19 | 1 | -1/+8 | |
| | ||||||
* | hstore test passes against non-utf8 databases. | Daniele Varrazzo | 2010-11-19 | 1 | -6/+16 | |
| | ||||||
* | Test cleanup. | Daniele Varrazzo | 2010-11-19 | 13 | -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 Varrazzo | 2010-11-18 | 1 | -13/+88 | |
| | | | | Also, general isolation levels cleanup and tests added. | |||||
* | Added tests to check the effective isolation level. | Daniele Varrazzo | 2010-11-17 | 1 | -0/+68 | |
| | ||||||
* | Fixed notices order (ticket #9). | Daniele Varrazzo | 2010-11-11 | 1 | -0/+26 | |
| | ||||||
* | NamedTupleCursor doesn't change exception when fetching with no result. | Daniele Varrazzo | 2010-11-11 | 1 | -0/+9 | |
| | ||||||
* | Build the namedtuple only once per execution, not once per fetch. | Daniele Varrazzo | 2010-11-11 | 1 | -0/+45 | |
| | ||||||
* | Fixed tests to run on Windows. | Daniele Varrazzo | 2010-11-11 | 2 | -1/+9 | |
| | ||||||
* | Silencing other 2 tests failures due to 2pc disabled in the server. | Daniele Varrazzo | 2010-11-09 | 1 | -0/+8 | |
| | ||||||
* | Fixed test syntax for py 2.4. | Daniele Varrazzo | 2010-11-09 | 1 | -2/+1 | |
| | ||||||
* | Use the adapter of an object superclass if available. | Daniele Varrazzo | 2010-11-08 | 1 | -0/+29 | |
| | ||||||
* | Tests fail gracefully if tpc is supported but disabled by the server. | Daniele Varrazzo | 2010-11-08 | 1 | -0/+36 | |
| | ||||||
* | Added NamedTupleCursor. | Daniele Varrazzo | 2010-11-06 | 1 | -0/+103 | |
| | ||||||
* | Added test to verify the ticket #7 is fixed. | Daniele Varrazzo | 2010-11-06 | 1 | -0/+13 | |
| | ||||||
* | The Notify type is hashable. | Daniele Varrazzo | 2010-11-05 | 1 | -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 Varrazzo | 2010-11-05 | 1 | -1/+1 | |
| | ||||||
* | Added comparison between Notify objects and Notify or tuple. | Daniele Varrazzo | 2010-11-05 | 1 | -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 Varrazzo | 2010-11-05 | 1 | -0/+17 | |
| | ||||||
* | The hstore typecast can be registered globally. | Daniele Varrazzo | 2010-11-05 | 1 | -0/+21 | |
| | ||||||
* | Hstore can return unicode keys and values. | Daniele Varrazzo | 2010-11-05 | 1 | -0/+36 | |
| | ||||||
* | Added test to verify dict roundtrip with hstore. | Daniele Varrazzo | 2010-11-05 | 1 | -0/+24 | |
| | ||||||
* | Correctly parse escaped quotes from hstore. | Daniele Varrazzo | 2010-11-05 | 1 | -0/+1 | |
| | | | | Parse regexp simplified. | |||||
* | Added hstore typecaster registration. | Daniele Varrazzo | 2010-11-05 | 1 | -0/+23 | |
| |