summaryrefslogtreecommitdiff
path: root/tests/pipeline.py
Commit message (Collapse)AuthorAgeFilesLines
* pipeline tests converted to pytestandy2013-06-041-202/+0
|
* Merge pull request #338 from stephan-hof/corrupted_pipeline_socketAndy McCurdy2013-04-221-0/+15
|\ | | | | socket gets corrupted if errors in pipeline happen
| * Add python3 and python2.5 compatibilityhofmockel2013-04-191-1/+1
| |
| * Read all command responses of a pipelinehofmockel2013-04-171-0/+15
| | | | | | | | | | Otherwise a error makes the responses stuck in the socket. Which leads to wrong responses for the following commands
* | Format code per pep8 guidelinesPaul Belanger2013-03-301-0/+1
|/ | | | | | A simple patch to enable pep8 in tox and format our code properly. Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
* Pipelines now have a __len__() method.Jon Parise2013-01-061-0/+16
| | | | | | The length of a pipeline is defined as the length of its command stack. This makes it easy to inspect the number of batched commands and to write conditional logic for empty pipelines.
* always raise parse error exceptions in multi/exec pipelines as a result of thisandy2012-11-161-16/+0
| | | | server change: https://groups.google.com/forum/?hl=en&fromgroups=#!topic/redis-db/VUiEFT8U8U0
* pipelines now raise errors by default.andy2012-10-071-3/+40
| | | | | pass `raise_on_error=False` to `pipeline.execute()` if you prefer the old behavior.
* cleaned up tests to not use decode_responses=True. this was masking some ↵andy2012-08-151-25/+24
| | | | errors from the recent python3 port.
* Fixed PEP 8 violations introduced in previous commitsAlex Grönholm2012-08-071-1/+2
|
* Fixed Python 3.2+ compatibilityAlex Grönholm2012-08-071-1/+1
|
* Cleaned up code for PEP 8 complianceAlex Grönholm2012-08-061-4/+7
|
* added __future__ import to be 2.5 compat.andy2011-07-181-0/+1
|
* Added a `transaction` convenience method that eliminates boilerplate whenandy2011-07-171-0/+24
| | | | using pipelines while WATCHing variables.
* Pipelines can now be used as Context Managers. Thanks David Wolever. Fixes #160andy2011-07-171-76/+76
|
* Simplifying the Pipeline transaction logic.David Wolever2011-07-111-0/+25
|
* WATCH and UNWATCH have been broken since 2.4 because of connection pooling. ↵Andy McCurdy2011-07-111-7/+47
| | | | This fix moves WATCH and UNWATCH to the Pipeline class, where they belong and tests to prove they work.
* support ZADD variable length args. deprecate the version passing score and ↵Andy McCurdy2011-05-311-1/+1
| | | | value (in the wrong order).
* removing unnecessary importsAndy McCurdy2011-05-221-5/+0
|
* [issue 29] Redis instance doesn't use shared connection pool by defaultKonstantin Merenkov2010-04-121-10/+3
| | | | | | | | | | | | | | | * Redis constructor accepts connection_pool keyword argument, that defaults to None (no shared connection pool). However, you can create ConnectionManager instance yourself and pass it to as many Redis instances as you want, making them use shared connection pool. * Renamed ConnectionManager to ConnectionPool. * Exported ConnectionPool, so now you can import it in your code and create instances. * Removed test_pipeline_with_fresh_connection test, since all redis instances don't use shared pool by default now. * corrected few typos in comments. * repaired the rest of tests.
* Pipeines can not optionally be transactions (wrapped in MULTI/EXEC) or not ↵Andy McCurdy2010-03-311-8/+14
| | | | by passing the transaction parameter. This fixes #23.
* New test that proves that self.subscribed in Pipeline is necessaryKonstantin Merenkov2010-03-311-1/+8
|
* Pipeline objects are now executed atomically via the MULTI and EXEC commandsAndy McCurdy2010-03-101-0/+30
|
* - connection objects now store authentication credentials so that reconnect ↵andymccurdy2010-02-161-0/+25
works as expected. - Connection.connect now calls back into the redis instance class to send the auth and select commands to the server. this does not yet work with pipelines, which will be addressed shortly. - Added very basic tests for the connection pool and pipeline