summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | Adds support for CLIENT IDItamar Haber2018-10-051-0/+4
|/ | | | Signed-off-by: Itamar Haber <itamar@redislabs.com>
* wrote tests for multi output spop commandAlireza2017-10-101-0/+11
|
* clientlist response, client_name value might contain the '=' character, in ↵swilly222017-09-221-0/+8
| | | | that case the response parser will fail
* Merge pull request #810 from r0fls/zcount-exclusive-rangeAndy McCurdy2017-08-161-0/+2
|\ | | | | test zcount exclusive range
| * test zcount exclusive rangeRaphael Deem2016-12-221-0/+2
| |
* | GEOPOS returns different values from redis 3.2 to redis 4.0Andy McCurdy2017-08-152-2/+12
| | | | | | | | | | update test suite to test the appropriate return type based on server version
* | fix problem when using geopos on unexistent hash memberAbraham Toriz2017-08-101-0/+4
| |
* | Merge branch 'pr/867'Andy McCurdy2017-07-311-14/+20
|\ \
| * | Fix icnorrect testBen Greenberg2017-06-151-1/+2
| | |
| * | update tests to reflect the fact that the script sha is precalculatedBen Greenberg2017-06-151-13/+18
| | |
* | | skip HSTRLEN tests if server < 3.2.0Andy McCurdy2017-07-311-0/+1
| | |
* | | Implement HSTRLEN commandAleksandr Putilin2017-07-211-0/+5
|/ /
* | Fix warning during testJon Dufresne2017-01-281-1/+1
| | | | | | | | | | | | Fixes warning output: DeprecationWarning: "charset" is deprecated. Use "encoding" instead
* | Add minimum Redis server version to TestPubSubPubSubSubcommandsAngusP2017-01-241-0/+4
| |
* | Add PUBSUB docs to READMEAngusP2017-01-241-1/+0
| |
* | Implement PUBSUB * commandsAngusP2017-01-241-1/+27
|/ | | | | PUBSUB CHANNELS, PUBSUB NUMSUB and PUBSUB NUMPAT are implemented as per https://redis.io/commands/pubsub and suggested in Issue #526. Implemented test class `TestPubSubPubSubSubcommands` to test added commands. Tested against python 3.4.2 and python 2.7.5
* Merge pull request #698 from mumumu/add_replace_option_to_restore_commandAndy McCurdy2016-06-151-0/+10
|\ | | | | implemented REPLACE modifier of restore command
| * - added replace option to restore commandYoshinari Takaoka2015-12-281-0/+10
| |
* | Merge pull request #747 from pfreixes/geo_commandsAndy McCurdy2016-06-141-0/+166
|\ \ | | | | | | Implemented support for the GEO commands for Redis 3.2.0
| * | Fixed issues regarding Python3pfreixes2016-06-141-1/+1
| | |
| * | Geo Commands, return Python native typesPau Freixes2016-06-141-18/+51
| | |
| * | Implemented support for the GEO commands for Redis 3.2.0pfreixes2016-05-161-0/+133
| | | | | | | | | | | | | | | The following commands have been implemented GEOADD, GEODIST, GEOHASH, GEOPOS, GEORADIUS, GEORADIUSBYMEMBER.
* | | pubsub: improve error reporting if caller forgets to subscribeGreg Ward2016-06-121-0/+8
|/ / | | | | | | | | | | | | | | | | | | | | | | | | This is an easy mistake to make -- at least, I keep making it. It formerly resulted in a confusing crash, "AttributeError: 'NoneType' object has no attribute 'can_read'", from parse_response(). I have had to dig into the redis-py source code more than once to figure out what went wrong. With this patch, it still crashes, but with a clearer error that clarifies what the calling code forgot to do. Fixes issue #716.
* | PEP8 fixesTim Savage2016-03-291-3/+11
| |
* | Extend ConnectionPool.to_url to parse querystring arguments to correct type.Tim Savage2016-03-291-1/+38
| | | | | | | | | | Previously if a value for socket_timeout was supplied as part fo the URL an error would be raised when a socket was created with an invalid type, this change fixes that by parsing `socket_timeout`, `socket_connect_timeout` to float values. In addition the boolean values `socket_keepalive` and `retry_on_timeout` are parsed to bool types taking into account the usage of True/False, Yes/No strings.
* | pep8 codeiandyh2016-02-192-12/+15
| |
* | format long mocked response stringiandyh2016-02-181-2/+23
| |
* | redis cluster commandsiandyh2015-12-012-0/+94
|/
* FIX #651 try next Sentinel node on TimeoutErrorBo Lopker2015-11-271-0/+22
|
* fix getitem syntax for redis get when value is the empty stringJavier Candeira2015-11-251-0/+4
|
* -added zrevrangebylexChristian Bodt2015-10-201-0/+11
|
* Fix tests under Redis 3.x; we can be of an "embedded string" format now.Chris Lamb2015-08-181-1/+1
| | | | Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
* support multiple keys for pfcount callChris Wilkes2015-05-221-0/+4
|
* fix: Connection.encode complains when value is an object having unicode ↵Eric Du2015-05-041-0/+7
| | | | characters in its printable representation
* Handle percent-encoded URLs in parsing codePaul Keene2015-02-091-0/+45
|
* pep8 fixHendrik Muhs2014-12-041-0/+1
|
* fix pep8Hendrik Muhs2014-12-041-4/+5
|
* UnicodeDecodeErrorfix unicode encode error when using pipeline in ↵Hendrik Muhs2014-12-041-0/+31
| | | | combination with msgpack and lua
* fix testsNickolai Novik2014-06-211-4/+4
|
* bitpos command implementationNickolai Novik2014-06-211-0/+22
|
* lock tests: change lock.token to lock.local.tokenwil paredes2014-06-051-3/+3
|
* add a lock implementation using Lua scripts.Andy McCurdy2014-06-011-25/+85
|
* updated Lock class:Andy McCurdy2014-06-011-39/+85
| | | | | * now uses unique string tokens to claim lock ownership * added extend() method to extend the timeout on an already acquired lock
* move Lock class to it's own moduleAndy McCurdy2014-05-311-1/+1
|
* consistent naming, #446Andy McCurdy2014-05-141-3/+5
|
* allow cert_reqs to be a string and convert it to the appropriate SSL constant.Andy McCurdy2014-05-131-0/+26
|
* more love for testing on servers w/ other connected clientsAndy McCurdy2014-05-121-15/+18
|
* be better about testing on servers where there may be other connected clientsAndy McCurdy2014-05-121-2/+4
|
* string literals no longer get encoded before being send to RedisAndy McCurdy2014-05-121-0/+9
| | | | | | | | | | | | previously all pieces of a command, including the command name and literal options to it (such as "WITHSCORES" on ZSET commands) would get encoded. this works fine on utf-8, but other encodings like utf-16 break. a new Token class has been introduced that command names and literal options get wrapped. the encoder falls back to the latin-1 encoding for these literals as they are all ascii. fixes #430
* Cleaned up URL parsing code, now returns ConnectionPool instances.Andy McCurdy2014-05-111-187/+191
| | | | | | | StrictRedis.from_url() now creations a connection pool instance and passes that as the connection_pool argument to the client class. Cleaned up the test suite for URL parsing and BlockingConnectionPool tests